com.rapidtransform.core.meta.service
Class DictionaryImpl

java.lang.Object
  extended by com.rapidtransform.core.meta.service.DictionaryImpl
All Implemented Interfaces:
Dictionary

public class DictionaryImpl
extends java.lang.Object
implements Dictionary

Author:
Steve Werner

Constructor Summary
DictionaryImpl()
           
 
Method Summary
 void addModel(MetaModel model)
           
 java.util.Map<QName,MetaModel> getLoadedModels()
           
 MetaModel getModel(QName qName)
           
 Namespace getNamespace(QName type)
          Returns the namespace associated with the given Meta Type.
 MetaProperty getProperty(java.lang.String propertyName)
          Returns the MetaProperty given the internal representation of the property name, which consists of the MetaType prefix, MetaType localName, and propertyName strings concatenated together and separate by _.
 QName getQName(Namespace namespace)
          Returns the qualified name for the given namespace.
 java.util.Collection<MetaType> getSearchableTypes()
          Returns a list of all searchable Meta Types defined for the application.
 MetaType getType(QName qName)
           
 void removeModel(QName qName)
           
 void setLoadedModels(java.util.Map<QName,MetaModel> loadedModels)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryImpl

public DictionaryImpl()
Method Detail

getLoadedModels

public java.util.Map<QName,MetaModel> getLoadedModels()
Specified by:
getLoadedModels in interface Dictionary
Returns:
Returns the loadedModels.

setLoadedModels

public void setLoadedModels(java.util.Map<QName,MetaModel> loadedModels)
Parameters:
loadedModels - The loadedModels to set.

addModel

public void addModel(MetaModel model)
Specified by:
addModel in interface Dictionary

removeModel

public void removeModel(QName qName)
                 throws MetaException
Specified by:
removeModel in interface Dictionary
Throws:
MetaException

getModel

public MetaModel getModel(QName qName)
Specified by:
getModel in interface Dictionary

getType

public MetaType getType(QName qName)
Specified by:
getType in interface Dictionary

getProperty

public MetaProperty getProperty(java.lang.String propertyName)
Returns the MetaProperty given the internal representation of the property name, which consists of the MetaType prefix, MetaType localName, and propertyName strings concatenated together and separate by _. For example, for MetaType prd:product and property foo, the internal property name is: prd_product_foo

Specified by:
getProperty in interface Dictionary
Returns:
Returns the loadedProperties.

getQName

public QName getQName(Namespace namespace)
Description copied from interface: Dictionary
Returns the qualified name for the given namespace.

Specified by:
getQName in interface Dictionary
Returns:

getNamespace

public Namespace getNamespace(QName type)
Description copied from interface: Dictionary
Returns the namespace associated with the given Meta Type.

Specified by:
getNamespace in interface Dictionary
Returns:

getSearchableTypes

public java.util.Collection<MetaType> getSearchableTypes()
Description copied from interface: Dictionary
Returns a list of all searchable Meta Types defined for the application.

Specified by:
getSearchableTypes in interface Dictionary
Returns: