org.kuali.student.contract.model.util
Class ModelFinder
java.lang.Object
org.kuali.student.contract.model.util.ModelFinder
public class ModelFinder
- extends Object
Utility that implements searches of the spreadsheet model that are needed
TODO: refactor all the *Writer to use this instead of their own finds.
- Author:
- nwright
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
searchModel
private SearchModel searchModel
serviceContractModel
private ServiceContractModel serviceContractModel
dictionaryModel
private DictionaryModel dictionaryModel
defaultType
private Type defaultType
defaultState
private State defaultState
ModelFinder
public ModelFinder(DictionaryModel model)
ModelFinder
public ModelFinder(SearchModel model)
ModelFinder
public ModelFinder(ServiceContractModel model)
findXmlType
public XmlType findXmlType(String xmlTypeName)
findStates
public List<State> findStates(String xmlObject)
findTypes
public List<Type> findTypes(String xmlObject)
findType
public Type findType(String xmlObject,
String typeName)
findType
public Type findType(String typeKey)
findState
public State findState(String xmlObject,
String stateName)
findState
public State findState(String stateKey)
findRoot
public Dictionary findRoot(Dictionary dict)
findDictionaryEntry
public Dictionary findDictionaryEntry(String dictId)
- get dictionary entry for the id
- Returns:
findChildDictionaryEntries
public List<Dictionary> findChildDictionaryEntries(Dictionary parent)
- get dictionary entries for the state overries
- Returns:
findDefaultDictionary
public List<Dictionary> findDefaultDictionary()
- get dictionary entries for the state overries
- Returns:
findDictionaryEntriees
public List<Dictionary> findDictionaryEntriees(String xmlTypeName)
findDefaultDictionaryEntriees
public List<Dictionary> findDefaultDictionaryEntriees(String xmlTypeName)
findStateOverrideDictionary
public List<Dictionary> findStateOverrideDictionary()
- get dictionary entries for the state overries
- Returns:
expandType
public Set<Type> expandType(Type type)
- Expands a type that has a status of Type.GROUPING.
A group can contain another group
- Parameters:
state
-
- Returns:
expandState
public Set<State> expandState(State state)
- Expands a type that has a status of Type.GROUPING.
A group can contain another group
- Parameters:
state
-
- Returns:
findConstraint
public Constraint findConstraint(String id)
stripListFromType
private static String stripListFromType(String type)
loadAllComplexSubTypes
private void loadAllComplexSubTypes(Set<XmlType> types,
String xmlTypeName)
findAllComplexSubTypes
public Set<XmlType> findAllComplexSubTypes(String xmlTypeName)
findAllComplexTypesInService
public Set<XmlType> findAllComplexTypesInService(String service)
findMainXmlTypesInService
public Set<XmlType> findMainXmlTypesInService(String service)
findField
public Field findField(String id)
findField
public Field findField(String xmlTypeName,
String shortName)
findField
public Field findField(Dictionary dict)
findFields
public List<Field> findFields(String xmlTypeName)
findService
public Service findService(String key)
findProject
public Project findProject(String key)
findSearchType
public SearchType findSearchType(String key)
findServiceMethods
public List<ServiceMethod> findServiceMethods(String service)
findServiceMethod
public ServiceMethod findServiceMethod(String service,
String name)
getServiceMethodsInService
public List<ServiceMethod> getServiceMethodsInService(String service)
findMessageStructures
public List<MessageStructure> findMessageStructures(String xmlType)
findMessageStructure
public MessageStructure findMessageStructure(String xmlType,
String shortName)
getDefaultType
public Type getDefaultType()
getDefaultState
public State getDefaultState()
Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.