Sun Message Library for SWIFT API

com.stc.swift.repository.impl
Class ObjectTypeDefinitionImpl

java.lang.Object
  extended by com.stc.swift.repository.impl.SwiftObjectImpl
      extended by com.stc.swift.repository.impl.SwiftProjectElementImpl
          extended by com.stc.swift.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:
SwiftObjectTypeDefinitionImpl

public abstract class ObjectTypeDefinitionImpl
extends SwiftProjectElementImpl
implements com.stc.model.common.ObjectTypeDefinition

Version:
$Revision: 1.2 $

Field Summary
static java.lang.String ACCESS
          Constant for Map
static java.lang.String DOCUMENTATION
          Constant for Map
static java.lang.String OBJECT_TYPE_DEFINITION_TYPE
          Constant for Map
static java.lang.String ORIGIN
          Constant for Map
static java.lang.String OTD_LOCALIZED_INFOS
          Constant for Map
static java.lang.String OTD_META_CONTAINER
           
static java.lang.String OTD_WIZARD
          Constant for Map
static java.lang.String SERIAL
          Constant for Map
static java.lang.String STRUCTURE
          Constant for Map
static java.lang.String TOP_NODE_ID
          Constant for Map
 
Fields inherited from interface com.stc.model.common.ObjectTypeDefinition
RCS_ID
 
Constructor Summary
ObjectTypeDefinitionImpl()
          Constructs an instance.
ObjectTypeDefinitionImpl(java.lang.String name)
          Constructs an instance.
 
Method Summary
 void addExternalObjectTypeDefinition(com.stc.model.common.ObjectTypeDefinition entry)
           
 boolean checkExternal(com.stc.model.common.ObjectTypeDefinition entry, java.util.HashMap map)
          Check if the the OTD is one of the external OTD for this OTD, returns a map for those external OTD already checked.
 void collectExternals(java.util.HashMap map)
          Insert external OTD to the map if it's not exist.
 com.stc.model.common.OTDLocalizedInfo createOTDLocalizedInfo(java.lang.String language)
           
 com.stc.model.common.OTDLocalizedInfo deleteOTDLocalizedInfo(com.stc.model.common.OTDLocalizedInfo value)
           
 java.lang.String getAccess()
           
 java.util.Collection getAllExternalObjectTypeDefinitions()
           
 java.lang.String getDocumentation()
           
 com.stc.model.common.ObjectTypeDefinition getExternalObjectTypeDefinition(java.lang.String name)
           
 java.util.Collection getExternalObjectTypeDefinitions()
           
 java.lang.String getOrigin()
           
 com.stc.model.common.OTDLocalizedInfo getOTDLocalizedInfo(java.lang.String language)
           
 java.util.Collection getOTDLocalizedInfos()
           
 java.lang.String getOtdMetaContainer()
           
 java.lang.String getSerial()
           
 java.lang.String getStructure()
           
 int getTopNodeId()
           
 boolean isExternal(com.stc.model.common.ObjectTypeDefinition entry)
           
 boolean isMessageable()
          ccom.stc.model.common.ObjectTypeDefinition
 boolean isVersionable()
           
 com.stc.model.common.ObjectTypeDefinition removeExternalObjectTypeDefinition(com.stc.model.common.ObjectTypeDefinition entry)
           
 void setAccess(java.lang.String value)
           
 void setDocumentation(java.lang.String value)
           
 void setOrigin(java.lang.String value)
           
 void setOtdMetaContainer(java.lang.String otdMetaContainer)
           
 void setSerial(java.lang.String value)
           
 void setStructure(java.lang.String value)
           
 void setTopNodeId(int value)
           
 
Methods inherited from class com.stc.swift.repository.impl.SwiftProjectElementImpl
getParentProject, getProjectElementType, setParentProject
 
Methods inherited from class com.stc.swift.repository.impl.SwiftObjectImpl
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListeners, equals, getACLInfo, getClassNameAlias, getClassNameAlias, getCreatedBy, getCreationDate, getCUDTracker, getDescription, getLastUpdatedBy, getLastUpdatedDate, getMarshalableSupport, getName, getOID, getOwnerOID, getPersistableSupport, getPropertyMap, getReferenceID, getRelationshipMap, getVersionInfo, hashCode, isHeaderResolved, isLocked, onDelete, onUnmarshalFinished, onUnmarshalStarting, propertyChange, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListeners, resolve, setACLInfo, setCreatedBy, setCreationDate, setCUDTracker, setDescription, setHeaderResolved, setLastUpdatedBy, setLastUpdatedDate, setName, setOID, setOwnerOID, setPropertyMap, setReferenceID, setResolver, setUnresolved, setVersionInfo, toString
 
Methods inherited from class java.lang.Object
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
 

Field Detail

ACCESS

public static final java.lang.String ACCESS
Constant for Map

See Also:
Constant Field Values

DOCUMENTATION

public static final java.lang.String DOCUMENTATION
Constant for Map

See Also:
Constant Field Values

ORIGIN

public static final java.lang.String ORIGIN
Constant for Map

See Also:
Constant Field Values

STRUCTURE

public static final java.lang.String STRUCTURE
Constant for Map

See Also:
Constant Field Values

OBJECT_TYPE_DEFINITION_TYPE

public static final java.lang.String OBJECT_TYPE_DEFINITION_TYPE
Constant for Map

See Also:
Constant Field Values

SERIAL

public static final java.lang.String SERIAL
Constant for Map

See Also:
Constant Field Values

TOP_NODE_ID

public static final java.lang.String TOP_NODE_ID
Constant for Map

See Also:
Constant Field Values

OTD_WIZARD

public static final java.lang.String OTD_WIZARD
Constant for Map

See Also:
Constant Field Values

OTD_LOCALIZED_INFOS

public static final java.lang.String OTD_LOCALIZED_INFOS
Constant for Map

See Also:
Constant Field Values

OTD_META_CONTAINER

public static final java.lang.String OTD_META_CONTAINER
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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 OTD
map - 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)

isVersionable

public boolean isVersionable()
Specified by:
isVersionable in interface com.stc.repository.persistence.client.Persistable
Overrides:
isVersionable in class SwiftObjectImpl
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)

Sun Message Library for SWIFT API

Copyright © 2008 Sun Microsystems, Inc. All rights reserved.