org.apache.ws.scout.registry.infomodel
Class RegistryObjectImpl
java.lang.Object
org.apache.ws.scout.registry.infomodel.ExtensibleObjectImpl
org.apache.ws.scout.registry.infomodel.RegistryObjectImpl
- All Implemented Interfaces:
- ExtensibleObject, RegistryObject
- Direct Known Subclasses:
- AssociationImpl, ClassificationImpl, ConceptImpl, ExternalIdentifierImpl, ExternalLinkImpl, OrganizationImpl, RegistryEntryImpl, ServiceBindingImpl, SpecificationLinkImpl, UserImpl
public class RegistryObjectImpl
- extends ExtensibleObjectImpl
- implements RegistryObject
Implements RegistryObject Interface
Implements JAXR Interface.
For futher details, look into the JAXR API Javadoc.
- Author:
- Anil Saldhana, Geir Magnusson Jr.
RegistryObjectImpl
public RegistryObjectImpl(LifeCycleManager lifeCycleManager)
RegistryObjectImpl
public RegistryObjectImpl(LifeCycleManager lifeCycleManager,
InternationalString n)
getKey
public Key getKey()
- Specified by:
getKey in interface RegistryObject
getDescription
public InternationalString getDescription()
- Specified by:
getDescription in interface RegistryObject
setDescription
public void setDescription(InternationalString description)
- Specified by:
setDescription in interface RegistryObject
getName
public InternationalString getName()
- Specified by:
getName in interface RegistryObject
setName
public void setName(InternationalString name)
- Specified by:
setName in interface RegistryObject
setKey
public void setKey(Key k)
- Specified by:
setKey in interface RegistryObject
toXML
public String toXML()
throws JAXRException
- Specified by:
toXML in interface RegistryObject
- Throws:
JAXRException
addClassification
public void addClassification(Classification classification)
- Specified by:
addClassification in interface RegistryObject
addClassifications
public void addClassifications(Collection collection)
- Specified by:
addClassifications in interface RegistryObject
removeClassification
public void removeClassification(Classification classification)
- Specified by:
removeClassification in interface RegistryObject
removeClassifications
public void removeClassifications(Collection<Classification> collection)
- Specified by:
removeClassifications in interface RegistryObject
getClassifications
public Collection getClassifications()
- Specified by:
getClassifications in interface RegistryObject
setClassifications
public void setClassifications(Collection<Classification> collection)
- Specified by:
setClassifications in interface RegistryObject
addAssociation
public void addAssociation(Association association)
throws JAXRException
- Adds specified Association to use this object as source.
Silently replaces the sourceObject in Association with
reference to this object.
- Specified by:
addAssociation in interface RegistryObject
- Parameters:
association -
- Throws:
JAXRException
addAssociations
public void addAssociations(Collection collection)
throws JAXRException
- Specified by:
addAssociations in interface RegistryObject
- Throws:
JAXRException
getAssociations
public Collection<Association> getAssociations()
throws JAXRException
- Specified by:
getAssociations in interface RegistryObject
- Throws:
JAXRException
setAssociations
public void setAssociations(Collection collection)
- Specified by:
setAssociations in interface RegistryObject
removeAssociation
public void removeAssociation(Association association)
- Specified by:
removeAssociation in interface RegistryObject
removeAssociations
public void removeAssociations(Collection collection)
- Specified by:
removeAssociations in interface RegistryObject
addExternalIdentifier
public void addExternalIdentifier(ExternalIdentifier externalIdentifier)
- Specified by:
addExternalIdentifier in interface RegistryObject
addExternalIdentifiers
public void addExternalIdentifiers(Collection<ExternalIdentifier> collection)
- Specified by:
addExternalIdentifiers in interface RegistryObject
removeExternalIdentifier
public void removeExternalIdentifier(ExternalIdentifier externalIdentifier)
- Specified by:
removeExternalIdentifier in interface RegistryObject
removeExternalIdentifiers
public void removeExternalIdentifiers(Collection collection)
- Specified by:
removeExternalIdentifiers in interface RegistryObject
getExternalIdentifiers
public Collection<ExternalIdentifier> getExternalIdentifiers()
- Specified by:
getExternalIdentifiers in interface RegistryObject
setExternalIdentifiers
public void setExternalIdentifiers(Collection<ExternalIdentifier> collection)
- Specified by:
setExternalIdentifiers in interface RegistryObject
addExternalLink
public void addExternalLink(ExternalLink externalLink)
- Specified by:
addExternalLink in interface RegistryObject
addExternalLinks
public void addExternalLinks(Collection<ExternalLink> collection)
- Specified by:
addExternalLinks in interface RegistryObject
removeExternalLink
public void removeExternalLink(ExternalLink externalLink)
- Specified by:
removeExternalLink in interface RegistryObject
removeExternalLinks
public void removeExternalLinks(Collection collection)
- Specified by:
removeExternalLinks in interface RegistryObject
getExternalLinks
public Collection<ExternalLink> getExternalLinks()
- Specified by:
getExternalLinks in interface RegistryObject
setExternalLinks
public void setExternalLinks(Collection<ExternalLink> collection)
- Specified by:
setExternalLinks in interface RegistryObject
getSubmittingOrganization
public Organization getSubmittingOrganization()
- Specified by:
getSubmittingOrganization in interface RegistryObject
getLifeCycleManager
public LifeCycleManager getLifeCycleManager()
- Specified by:
getLifeCycleManager in interface RegistryObject
equals
public boolean equals(Object obj)
- The spec does not define how equality is defined for RegistryObject's.
We choose to define it as having the same class and key value; if the
key is null then the objects are not equal.
- Overrides:
equals in class Object
- Parameters:
obj - the object to compare to
- Returns:
- true if the other object is of the same class and has the same key value
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getAuditTrail
public Collection getAuditTrail()
throws JAXRException
- Specified by:
getAuditTrail in interface RegistryObject
- Throws:
JAXRException
getAssociatedObjects
public Collection getAssociatedObjects()
throws JAXRException
- Specified by:
getAssociatedObjects in interface RegistryObject
- Throws:
JAXRException
getObjectType
public Concept getObjectType()
throws JAXRException
- Specified by:
getObjectType in interface RegistryObject
- Throws:
JAXRException
getRegistryPackages
public Collection getRegistryPackages()
throws JAXRException
- Specified by:
getRegistryPackages in interface RegistryObject
- Throws:
JAXRException
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.