org.apache.ws.scout.registry.infomodel
Class RegistryObjectImpl

java.lang.Object
  extended by org.apache.ws.scout.registry.infomodel.ExtensibleObjectImpl
      extended by org.apache.ws.scout.registry.infomodel.RegistryObjectImpl
All Implemented Interfaces:
javax.xml.registry.infomodel.ExtensibleObject, javax.xml.registry.infomodel.RegistryObject
Direct Known Subclasses:
AssociationImpl, ClassificationImpl, ConceptImpl, ExternalIdentifierImpl, ExternalLinkImpl, OrganizationImpl, RegistryEntryImpl, ServiceBindingImpl, SpecificationLinkImpl, UserImpl

public class RegistryObjectImpl
extends ExtensibleObjectImpl
implements javax.xml.registry.infomodel.RegistryObject

Implements RegistryObject Interface Implements JAXR Interface. For futher details, look into the JAXR API Javadoc.

Author:
Anil Saldhana, Geir Magnusson Jr.

Constructor Summary
RegistryObjectImpl(javax.xml.registry.LifeCycleManager lifeCycleManager)
           
RegistryObjectImpl(javax.xml.registry.LifeCycleManager lifeCycleManager, javax.xml.registry.infomodel.InternationalString n)
           
 
Method Summary
 void addAssociation(javax.xml.registry.infomodel.Association association)
          Adds specified Association to use this object as source.
 void addAssociations(java.util.Collection collection)
           
 void addClassification(javax.xml.registry.infomodel.Classification classification)
           
 void addClassifications(java.util.Collection collection)
           
 void addExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier externalIdentifier)
           
 void addExternalIdentifiers(java.util.Collection collection)
           
 void addExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink)
           
 void addExternalLinks(java.util.Collection collection)
           
 boolean equals(java.lang.Object obj)
          The spec does not define how equality is defined for RegistryObject's.
 java.util.Collection getAssociatedObjects()
           
 java.util.Collection<javax.xml.registry.infomodel.Association> getAssociations()
           
 java.util.Collection getAuditTrail()
           
 java.util.Collection getClassifications()
           
 javax.xml.registry.infomodel.InternationalString getDescription()
           
 java.util.Collection<javax.xml.registry.infomodel.ExternalIdentifier> getExternalIdentifiers()
           
 java.util.Collection<javax.xml.registry.infomodel.ExternalLink> getExternalLinks()
           
 javax.xml.registry.infomodel.Key getKey()
           
 javax.xml.registry.LifeCycleManager getLifeCycleManager()
           
 javax.xml.registry.infomodel.InternationalString getName()
           
 javax.xml.registry.infomodel.Concept getObjectType()
           
 java.util.Collection getRegistryPackages()
           
 javax.xml.registry.infomodel.Organization getSubmittingOrganization()
           
 int hashCode()
           
 void removeAssociation(javax.xml.registry.infomodel.Association association)
           
 void removeAssociations(java.util.Collection collection)
           
 void removeClassification(javax.xml.registry.infomodel.Classification classification)
           
 void removeClassifications(java.util.Collection collection)
           
 void removeExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier externalIdentifier)
           
 void removeExternalIdentifiers(java.util.Collection collection)
           
 void removeExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink)
           
 void removeExternalLinks(java.util.Collection collection)
           
 void setAssociations(java.util.Collection collection)
           
 void setClassifications(java.util.Collection collection)
           
 void setDescription(javax.xml.registry.infomodel.InternationalString description)
           
 void setExternalIdentifiers(java.util.Collection collection)
           
 void setExternalLinks(java.util.Collection collection)
           
 void setKey(javax.xml.registry.infomodel.Key k)
           
 void setName(javax.xml.registry.infomodel.InternationalString name)
           
 java.lang.String toXML()
           
 
Methods inherited from class org.apache.ws.scout.registry.infomodel.ExtensibleObjectImpl
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 

Constructor Detail

RegistryObjectImpl

public RegistryObjectImpl(javax.xml.registry.LifeCycleManager lifeCycleManager)

RegistryObjectImpl

public RegistryObjectImpl(javax.xml.registry.LifeCycleManager lifeCycleManager,
                          javax.xml.registry.infomodel.InternationalString n)
Method Detail

getKey

public javax.xml.registry.infomodel.Key getKey()
Specified by:
getKey in interface javax.xml.registry.infomodel.RegistryObject

getDescription

public javax.xml.registry.infomodel.InternationalString getDescription()
Specified by:
getDescription in interface javax.xml.registry.infomodel.RegistryObject

setDescription

public void setDescription(javax.xml.registry.infomodel.InternationalString description)
Specified by:
setDescription in interface javax.xml.registry.infomodel.RegistryObject

getName

public javax.xml.registry.infomodel.InternationalString getName()
Specified by:
getName in interface javax.xml.registry.infomodel.RegistryObject

setName

public void setName(javax.xml.registry.infomodel.InternationalString name)
Specified by:
setName in interface javax.xml.registry.infomodel.RegistryObject

setKey

public void setKey(javax.xml.registry.infomodel.Key k)
Specified by:
setKey in interface javax.xml.registry.infomodel.RegistryObject

toXML

public java.lang.String toXML()
                       throws javax.xml.registry.JAXRException
Specified by:
toXML in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

addClassification

public void addClassification(javax.xml.registry.infomodel.Classification classification)
Specified by:
addClassification in interface javax.xml.registry.infomodel.RegistryObject

addClassifications

public void addClassifications(java.util.Collection collection)
Specified by:
addClassifications in interface javax.xml.registry.infomodel.RegistryObject

removeClassification

public void removeClassification(javax.xml.registry.infomodel.Classification classification)
Specified by:
removeClassification in interface javax.xml.registry.infomodel.RegistryObject

removeClassifications

public void removeClassifications(java.util.Collection collection)
Specified by:
removeClassifications in interface javax.xml.registry.infomodel.RegistryObject

getClassifications

public java.util.Collection getClassifications()
Specified by:
getClassifications in interface javax.xml.registry.infomodel.RegistryObject

setClassifications

public void setClassifications(java.util.Collection collection)
Specified by:
setClassifications in interface javax.xml.registry.infomodel.RegistryObject

addAssociation

public void addAssociation(javax.xml.registry.infomodel.Association association)
                    throws javax.xml.registry.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 javax.xml.registry.infomodel.RegistryObject
Parameters:
association - association to add
Throws:
javax.xml.registry.JAXRException

addAssociations

public void addAssociations(java.util.Collection collection)
                     throws javax.xml.registry.JAXRException
Specified by:
addAssociations in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getAssociations

public java.util.Collection<javax.xml.registry.infomodel.Association> getAssociations()
                                                                               throws javax.xml.registry.JAXRException
Specified by:
getAssociations in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

setAssociations

public void setAssociations(java.util.Collection collection)
Specified by:
setAssociations in interface javax.xml.registry.infomodel.RegistryObject

removeAssociation

public void removeAssociation(javax.xml.registry.infomodel.Association association)
Specified by:
removeAssociation in interface javax.xml.registry.infomodel.RegistryObject

removeAssociations

public void removeAssociations(java.util.Collection collection)
Specified by:
removeAssociations in interface javax.xml.registry.infomodel.RegistryObject

addExternalIdentifier

public void addExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier externalIdentifier)
Specified by:
addExternalIdentifier in interface javax.xml.registry.infomodel.RegistryObject

addExternalIdentifiers

public void addExternalIdentifiers(java.util.Collection collection)
Specified by:
addExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject

removeExternalIdentifier

public void removeExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier externalIdentifier)
Specified by:
removeExternalIdentifier in interface javax.xml.registry.infomodel.RegistryObject

removeExternalIdentifiers

public void removeExternalIdentifiers(java.util.Collection collection)
Specified by:
removeExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject

getExternalIdentifiers

public java.util.Collection<javax.xml.registry.infomodel.ExternalIdentifier> getExternalIdentifiers()
Specified by:
getExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject

setExternalIdentifiers

public void setExternalIdentifiers(java.util.Collection collection)
Specified by:
setExternalIdentifiers in interface javax.xml.registry.infomodel.RegistryObject

addExternalLink

public void addExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink)
Specified by:
addExternalLink in interface javax.xml.registry.infomodel.RegistryObject

addExternalLinks

public void addExternalLinks(java.util.Collection collection)
Specified by:
addExternalLinks in interface javax.xml.registry.infomodel.RegistryObject

removeExternalLink

public void removeExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink)
Specified by:
removeExternalLink in interface javax.xml.registry.infomodel.RegistryObject

removeExternalLinks

public void removeExternalLinks(java.util.Collection collection)
Specified by:
removeExternalLinks in interface javax.xml.registry.infomodel.RegistryObject

getExternalLinks

public java.util.Collection<javax.xml.registry.infomodel.ExternalLink> getExternalLinks()
Specified by:
getExternalLinks in interface javax.xml.registry.infomodel.RegistryObject

setExternalLinks

public void setExternalLinks(java.util.Collection collection)
Specified by:
setExternalLinks in interface javax.xml.registry.infomodel.RegistryObject

getSubmittingOrganization

public javax.xml.registry.infomodel.Organization getSubmittingOrganization()
Specified by:
getSubmittingOrganization in interface javax.xml.registry.infomodel.RegistryObject

getLifeCycleManager

public javax.xml.registry.LifeCycleManager getLifeCycleManager()
Specified by:
getLifeCycleManager in interface javax.xml.registry.infomodel.RegistryObject

equals

public boolean equals(java.lang.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 java.lang.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 java.lang.Object

getAuditTrail

public java.util.Collection getAuditTrail()
                                   throws javax.xml.registry.JAXRException
Specified by:
getAuditTrail in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getAssociatedObjects

public java.util.Collection getAssociatedObjects()
                                          throws javax.xml.registry.JAXRException
Specified by:
getAssociatedObjects in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getObjectType

public javax.xml.registry.infomodel.Concept getObjectType()
                                                   throws javax.xml.registry.JAXRException
Specified by:
getObjectType in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException

getRegistryPackages

public java.util.Collection getRegistryPackages()
                                         throws javax.xml.registry.JAXRException
Specified by:
getRegistryPackages in interface javax.xml.registry.infomodel.RegistryObject
Throws:
javax.xml.registry.JAXRException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.