com.stc.hl7.repository.impl
Class ObjectTypeDefinitionImpl
java.lang.Object
com.stc.hl7.repository.impl.HL7ObjectImpl
com.stc.hl7.repository.impl.HL7ProjectElementImpl
com.stc.hl7.repository.impl.ObjectTypeDefinitionImpl
- All Implemented Interfaces:
- com.stc.model.common.ObjectTypeDefinition, com.stc.model.common.ProjectElement, com.stc.repository.persistence.client.Marshalable, com.stc.repository.persistence.client.Persistable, com.stc.repository.persistence.client.PropertyChangePublisher, com.stc.repository.RepositoryObject, java.beans.PropertyChangeListener, java.util.EventListener
- Direct Known Subclasses:
- HL7ObjectTypeDefinitionImpl
public abstract class ObjectTypeDefinitionImpl
- extends HL7ProjectElementImpl
- implements com.stc.model.common.ObjectTypeDefinition
- Version:
- $Revision: 1.3 $
- Author:
- nang
Fields inherited from interface com.stc.model.common.ObjectTypeDefinition |
RCS_ID |
Methods inherited from class com.stc.hl7.repository.impl.HL7ObjectImpl |
addPartOfValue, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListeners, addReferenceValue, deleteReferenceCollection, deleteReferenceValue, deleteReferenceValue, equals, getACLInfo, getBlobProperty, getClassNameAlias, getClassNameAlias, getCreatedBy, getCreationDate, getCUDTracker, getDescription, getLastUpdatedBy, getLastUpdatedDate, getMarshalableSupport, getName, getOID, getOwnerOID, getPartOfCollection, getPartOfProperty, getPartOfValue, getPersistableSupport, getPropertyMap, getReferenceCollection, getReferenceID, getReferenceProperty, getReferenceValue, getRelationshipMap, getVersionInfo, hashCode, initializeOID, isHeaderResolved, isLocked, onDelete, onUnmarshalFinished, onUnmarshalStarting, propertyChange, removePartOfValue, removePartOfValue, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListeners, removeReferenceValue, removeReferenceValue, resolve, setACLInfo, setBlobProperty, setCreatedBy, setCreationDate, setCUDTracker, setDescription, setHeaderResolved, setLastUpdatedBy, setLastUpdatedDate, setName, setOID, setOwnerOID, setPartOfProperty, setPropertyMap, setReferenceID, setReferenceProperty, setResolver, setUnresolved, setVersionInfo, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.stc.model.common.ProjectElement |
getDescription, getName, getParentProject, getProjectElementType, setDescription, setName, setParentProject |
Methods inherited from interface com.stc.repository.RepositoryObject |
getCUDTracker, onDelete, setCUDTracker |
Methods inherited from interface com.stc.repository.persistence.client.Persistable |
getACLInfo, getCreatedBy, getCreationDate, getLastUpdatedBy, getLastUpdatedDate, getOID, getOwnerOID, getPersistableSupport, getVersionInfo, isHeaderResolved, isLocked, resolve, setACLInfo, setCreatedBy, setCreationDate, setHeaderResolved, setLastUpdatedBy, setLastUpdatedDate, setOID, setResolver, setUnresolved, setVersionInfo |
Methods inherited from interface com.stc.repository.persistence.client.Marshalable |
getClassNameAlias, getMarshalableSupport, getPropertyMap, getReferenceID, getRelationshipMap, onUnmarshalFinished, onUnmarshalStarting, setPropertyMap, setReferenceID |
Methods inherited from interface com.stc.repository.persistence.client.PropertyChangePublisher |
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListeners |
Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
ACCESS
public static final java.lang.String ACCESS
- See Also:
- Constant Field Values
DOCUMENTATION
public static final java.lang.String DOCUMENTATION
- See Also:
- Constant Field Values
ORIGIN
public static final java.lang.String ORIGIN
- See Also:
- Constant Field Values
STRUCTURE
public static final java.lang.String STRUCTURE
- See Also:
- Constant Field Values
OBJECT_TYPE_DEFINITION_TYPE
public static final java.lang.String OBJECT_TYPE_DEFINITION_TYPE
- See Also:
- Constant Field Values
SERIAL
public static final java.lang.String SERIAL
- See Also:
- Constant Field Values
TOP_NODE_ID
public static final java.lang.String TOP_NODE_ID
- See Also:
- Constant Field Values
OTD_WIZARD
public static final java.lang.String OTD_WIZARD
- See Also:
- Constant Field Values
OTD_LOCALIZED_INFOS
public static final java.lang.String OTD_LOCALIZED_INFOS
- See Also:
- Constant Field Values
OTD_META_CONTAINER
public static final java.lang.String OTD_META_CONTAINER
- See Also:
- Constant Field Values
DELEGATE
public static final java.lang.String DELEGATE
- See Also:
- Constant Field Values
JAVANAME
public final java.lang.String JAVANAME
- See Also:
- Constant Field Values
ObjectTypeDefinitionImpl
public ObjectTypeDefinitionImpl()
throws com.stc.repository.RepositoryException
- Constructs an instance. This will be called by Repository unmarshalling.
- Throws:
com.stc.repository.RepositoryException
ObjectTypeDefinitionImpl
public ObjectTypeDefinitionImpl(java.lang.String name)
throws com.stc.repository.RepositoryException
- Constructs an instance.
- Parameters:
name
- the name
- Throws:
com.stc.repository.RepositoryException
- if this operation fails
setAccess
public void setAccess(java.lang.String value)
throws com.stc.repository.RepositoryException
- Specified by:
setAccess
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.setAccess(String)
getAccess
public java.lang.String getAccess()
throws com.stc.repository.RepositoryException
- Specified by:
getAccess
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getAccess()
getAllExternalObjectTypeDefinitions
public java.util.Collection getAllExternalObjectTypeDefinitions()
throws com.stc.repository.RepositoryException
- Specified by:
getAllExternalObjectTypeDefinitions
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getAllExternalObjectTypeDefinitions()
setDocumentation
public void setDocumentation(java.lang.String value)
throws com.stc.repository.RepositoryException
- Specified by:
setDocumentation
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.setDocumentation(String)
getDocumentation
public java.lang.String getDocumentation()
throws com.stc.repository.RepositoryException
- Specified by:
getDocumentation
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getDocumentation()
isExternal
public boolean isExternal(com.stc.model.common.ObjectTypeDefinition entry)
throws com.stc.repository.RepositoryException
- Specified by:
isExternal
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.isExternal(ObjectTypeDefinition)
getExternalObjectTypeDefinition
public com.stc.model.common.ObjectTypeDefinition getExternalObjectTypeDefinition(java.lang.String name)
throws com.stc.repository.RepositoryException
- Specified by:
getExternalObjectTypeDefinition
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getExternalObjectTypeDefinition(String)
getExternalObjectTypeDefinitions
public java.util.Collection getExternalObjectTypeDefinitions()
throws com.stc.repository.RepositoryException
- Specified by:
getExternalObjectTypeDefinitions
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getExternalObjectTypeDefinitions()
getOTDLocalizedInfo
public com.stc.model.common.OTDLocalizedInfo getOTDLocalizedInfo(java.lang.String language)
throws com.stc.repository.RepositoryException
- Specified by:
getOTDLocalizedInfo
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getOTDLocalizedInfo(String)
getOTDLocalizedInfos
public java.util.Collection getOTDLocalizedInfos()
throws com.stc.repository.RepositoryException
- Specified by:
getOTDLocalizedInfos
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getOTDLocalizedInfos()
setOrigin
public void setOrigin(java.lang.String value)
throws com.stc.repository.RepositoryException
- Specified by:
setOrigin
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.setOrigin(String)
getOrigin
public java.lang.String getOrigin()
throws com.stc.repository.RepositoryException
- Specified by:
getOrigin
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getOrigin()
setSerial
public void setSerial(java.lang.String value)
throws com.stc.repository.RepositoryException
- Specified by:
setSerial
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.setSerial(String)
getSerial
public java.lang.String getSerial()
throws com.stc.repository.RepositoryException
- Specified by:
getSerial
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getSerial()
setStructure
public void setStructure(java.lang.String value)
throws com.stc.repository.RepositoryException
- Specified by:
setStructure
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.setStructure(String)
getStructure
public java.lang.String getStructure()
throws com.stc.repository.RepositoryException
- Specified by:
getStructure
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getStructure()
setTopNodeId
public void setTopNodeId(int value)
throws com.stc.repository.RepositoryException
- Specified by:
setTopNodeId
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.setTopNodeId(int)
getTopNodeId
public int getTopNodeId()
throws com.stc.repository.RepositoryException
- Specified by:
getTopNodeId
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getTopNodeId()
addExternalObjectTypeDefinition
public void addExternalObjectTypeDefinition(com.stc.model.common.ObjectTypeDefinition entry)
throws com.stc.repository.RepositoryException
- Specified by:
addExternalObjectTypeDefinition
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.addExternalObjectTypeDefinition(ObjectTypeDefinition)
checkExternal
public boolean checkExternal(com.stc.model.common.ObjectTypeDefinition entry,
java.util.HashMap map)
throws com.stc.repository.RepositoryException
- Check if the the OTD is one of the external OTD for this OTD, returns a map
for those external OTD already checked.
- Parameters:
entry
- an OTDmap
- map for checked External OTD which doesn't match the criteria
- Returns:
- boolean true if the entry is one of the exteral OTD
- Throws:
com.stc.repository.RepositoryException
- if access to repository was failed.
collectExternals
public void collectExternals(java.util.HashMap map)
throws com.stc.repository.RepositoryException
- Insert external OTD to the map if it's not exist.
- Parameters:
map
- map to store the exteral OTD
- Throws:
com.stc.repository.RepositoryException
- if access to repository was failed.
createOTDLocalizedInfo
public com.stc.model.common.OTDLocalizedInfo createOTDLocalizedInfo(java.lang.String language)
throws com.stc.repository.RepositoryException
- Specified by:
createOTDLocalizedInfo
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.createOTDLocalizedInfo(String)
deleteOTDLocalizedInfo
public com.stc.model.common.OTDLocalizedInfo deleteOTDLocalizedInfo(com.stc.model.common.OTDLocalizedInfo value)
throws com.stc.repository.RepositoryException
- Specified by:
deleteOTDLocalizedInfo
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.deleteOTDLocalizedInfo(OTDLocalizedInfo)
removeExternalObjectTypeDefinition
public com.stc.model.common.ObjectTypeDefinition removeExternalObjectTypeDefinition(com.stc.model.common.ObjectTypeDefinition entry)
throws com.stc.repository.RepositoryException
- Specified by:
removeExternalObjectTypeDefinition
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.removeExternalObjectTypeDefinition(ObjectTypeDefinition)
addOTDLocalizedInfo
void addOTDLocalizedInfo(com.stc.model.common.OTDLocalizedInfo entry)
throws com.stc.repository.RepositoryException
- Adds the given OTDLocalizedInfo to the ObjectTypeDefinition.
- Parameters:
entry
- the OTDLocalizedInfo
- Throws:
com.stc.repository.RepositoryException
- if this operation fails
removeOTDLocalizedInfo
com.stc.model.common.OTDLocalizedInfo removeOTDLocalizedInfo(com.stc.model.common.OTDLocalizedInfo entry)
throws com.stc.repository.RepositoryException
- Removes the given OTDLocalizedInfo from the ObjectTypeDefinition.
- Parameters:
entry
- the OTDLocalizedInfo
- Returns:
- the removed OTDLocalizedInfo or null if the removal was failed.
- Throws:
com.stc.repository.RepositoryException
- if this operation fails
isVersionable
public boolean isVersionable()
- Specified by:
isVersionable
in interface com.stc.repository.persistence.client.Persistable
- Overrides:
isVersionable
in class HL7ObjectImpl
- See Also:
Persistable.isVersionable()
isMessageable
public boolean isMessageable()
throws com.stc.repository.RepositoryException
ccom.stc.model.common.ObjectTypeDefinition
- Specified by:
isMessageable
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
getOtdMetaContainer
public java.lang.String getOtdMetaContainer()
throws com.stc.repository.RepositoryException
- Specified by:
getOtdMetaContainer
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.getOtdMetaContainer()
setOtdMetaContainer
public void setOtdMetaContainer(java.lang.String otdMetaContainer)
throws com.stc.repository.RepositoryException
- Specified by:
setOtdMetaContainer
in interface com.stc.model.common.ObjectTypeDefinition
- Throws:
com.stc.repository.RepositoryException
- See Also:
ObjectTypeDefinition.setOtdMetaContainer(String)
getJavaName
public java.lang.String getJavaName()
throws com.stc.repository.RepositoryException
- Throws:
com.stc.repository.RepositoryException
- See Also:
CollaborationMessage
setJavaName
public void setJavaName(java.lang.String value)
throws com.stc.repository.RepositoryException
- Throws:
com.stc.repository.RepositoryException
- See Also:
CollaborationMessage
getDelegate
public HL7ObjectTypeDefinitionDataImpl getDelegate()
throws com.stc.repository.RepositoryException
- Throws:
com.stc.repository.RepositoryException
- See Also:
HL7ObjectTypeDefinition