org.kuali.student.contract.model.util
Class ModelFinder

java.lang.Object
  extended by 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

Constructor Summary
ModelFinder(DictionaryModel model)
           
ModelFinder(SearchModel model)
           
ModelFinder(ServiceContractModel model)
           
 
Method Summary
 Set<State> expandState(State state)
          Expands a type that has a status of Type.GROUPING.
 Set<Type> expandType(Type type)
          Expands a type that has a status of Type.GROUPING.
 Set<XmlType> findAllComplexSubTypes(String xmlTypeName)
           
 Set<XmlType> findAllComplexTypesInService(String service)
           
 List<Dictionary> findChildDictionaryEntries(Dictionary parent)
          get dictionary entries for the state overries
 Constraint findConstraint(String id)
           
 List<Dictionary> findDefaultDictionary()
          get dictionary entries for the state overries
 List<Dictionary> findDefaultDictionaryEntriees(String xmlTypeName)
           
 List<Dictionary> findDictionaryEntriees(String xmlTypeName)
           
 Dictionary findDictionaryEntry(String dictId)
          get dictionary entry for the id
 Field findField(Dictionary dict)
           
 Field findField(String id)
           
 Field findField(String xmlTypeName, String shortName)
           
 List<Field> findFields(String xmlTypeName)
           
 Set<XmlType> findMainXmlTypesInService(String service)
           
 MessageStructure findMessageStructure(String xmlType, String shortName)
           
 List<MessageStructure> findMessageStructures(String xmlType)
           
 Project findProject(String key)
           
 Dictionary findRoot(Dictionary dict)
           
 SearchType findSearchType(String key)
           
 Service findService(String key)
           
 ServiceMethod findServiceMethod(String service, String name)
           
 List<ServiceMethod> findServiceMethods(String service)
           
 State findState(String stateKey)
           
 State findState(String xmlObject, String stateName)
           
 List<Dictionary> findStateOverrideDictionary()
          get dictionary entries for the state overries
 List<State> findStates(String xmlObject)
           
 Type findType(String typeKey)
           
 Type findType(String xmlObject, String typeName)
           
 List<Type> findTypes(String xmlObject)
           
 XmlType findXmlType(String xmlTypeName)
           
 State getDefaultState()
           
 Type getDefaultType()
           
 List<ServiceMethod> getServiceMethodsInService(String service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelFinder

public ModelFinder(DictionaryModel model)

ModelFinder

public ModelFinder(SearchModel model)

ModelFinder

public ModelFinder(ServiceContractModel model)
Method Detail

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)

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 © 2004–2014 The Kuali Foundation. All rights reserved.