Class RegistryObjectImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- All Implemented Interfaces:
Serializable,javax.xml.registry.infomodel.ExtensibleObject,javax.xml.registry.infomodel.RegistryObject
- Direct Known Subclasses:
AssociationImpl,AuditableEventImpl,ClassificationImpl,ConceptImpl,ExternalIdentifierImpl,ExternalLinkImpl,OrganizationImpl,RegistryEntryImpl,ServiceBindingImpl,SpecificationLinkImpl,UserImpl
public abstract class RegistryObjectImpl extends ExtensibleObjectImpl implements javax.xml.registry.infomodel.RegistryObject, Serializable
Implementation of RegistryObject interface- Author:
- Kathy Walsh, Bobby Bissett
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegistryObjectImpl()Default constructorRegistryObjectImpl(javax.xml.registry.infomodel.Key key)Utility constructor used when key is knownRegistryObjectImpl(javax.xml.registry.infomodel.Key key, String description, String name)Utility constructor used when key, name, and description are known
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAssociation(javax.xml.registry.infomodel.Association association)Adds specified Association to use this object as source.voidaddAssociations(Collection associations)Adds specified Associations to use this object as source.voidaddClassification(javax.xml.registry.infomodel.Classification classification)Adds specified Classification to this object.voidaddClassifications(Collection classifications)Adds specified Classifications to this object.voidaddExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier identifier)Adds specified ExternalIdentifier to this object.voidaddExternalIdentifiers(Collection identifiers)Adds specified ExternalIdentifiers to this object.voidaddExternalLink(javax.xml.registry.infomodel.ExternalLink link)Adds specified ExternalLink to this object.voidaddExternalLinks(Collection links)Adds specified ExternalLinks to this object.voidaddSlot(javax.xml.registry.infomodel.Slot slot)Override superclass to set isModifiedvoidaddSlots(Collection slots)Override superclass to set isModifiedbooleanareAssociationsLoaded()Internal method to check if associations are loadedCollectiongetAssociatedObjects()Level 1 methodCollectiongetAssociations()Gets all Associations where this object is source.CollectiongetAuditTrail()Level 1 methodCollectiongetClassifications()Gets the Classification that classify this object.javax.xml.registry.ConnectiongetConnection()Returns the Connection associated with this object.javax.xml.registry.infomodel.InternationalStringgetDescription()Gets the context independent textual description for this object.CollectiongetExternalIdentifiers()Returns the ExternalIdentifiers associated with this object.CollectiongetExternalLinks()Returns the ExternalLinks associated with this object.javax.xml.registry.infomodel.KeygetKey()Get registry key identifying this objectjavax.xml.registry.LifeCycleManagergetLifeCycleManager()javax.xml.registry.infomodel.InternationalStringgetName()Gets user friendly context independent name of object in repository.javax.xml.registry.infomodel.ConceptgetObjectType()Level 1 methodCollectiongetRegistryPackages()Level 1 methodjavax.xml.registry.RegistryServicegetRegistryService()StringgetServiceId()javax.xml.registry.infomodel.OrganizationgetSubmittingOrganization()booleanisDeleted()booleanisLoaded()booleanisModified()booleanisNew()booleanisRetrieved()voidremoveAssociation(javax.xml.registry.infomodel.Association association)Removes specified Association from this object.voidremoveAssociations(Collection associations)Removes specified Associations from this object.voidremoveClassification(javax.xml.registry.infomodel.Classification classification)Removes specified Classification from this object.voidremoveClassifications(Collection classifications)Removes specified Classifications from this object.voidremoveExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier externalIdentifier)Removes specified ExternalIdentifier from this object.voidremoveExternalIdentifiers(Collection externalIdentifiers)Removes specified ExternalIdentifiers from this object.voidremoveExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink)Removes specified ExternalLink from this object.voidremoveExternalLinks(Collection externalLinks)Removes specified ExternalLinks from this object.voidremoveSlot(String slotName)Override superclass to set isModifiedvoidremoveSlots(Collection slotNames)Override superclass to set isModifiedvoidsetAssociations(Collection associations)Replaces all previous Associations from this object with specified Associations.voidsetAssociationsLoaded(boolean loaded)Internal method to set if associations are loadedvoidsetClassifications(Collection classifications)Replaces all previous Classifications with specified Classififications.voidsetDescription(javax.xml.registry.infomodel.InternationalString description)Set the desciption for the objectvoidsetExternalIdentifiers(Collection externalIdentifiers)Replaces all previous ExternalIdentifiers with specified ExternalIdentifiers.voidsetExternalLinks(Collection links)Sets specified ExternalLinks to this object.voidsetIsDeleted(boolean deleted)voidsetIsLoaded(boolean loaded)voidsetIsModified(boolean modified)voidsetIsNew(boolean isNew)voidsetIsRetrieved(boolean retrieved)voidsetKey(javax.xml.registry.infomodel.Key key)Set registry key on this objectvoidsetLifeCycleManager(javax.xml.registry.LifeCycleManager manager)Internal method for setting manager when object is createdvoidsetName(javax.xml.registry.infomodel.InternationalString name)Set the name for the objectvoidsetObjectType(javax.xml.registry.infomodel.Concept objectType)Level 1 methodvoidsetRegistryService(javax.xml.registry.RegistryService service)voidsetServiceId(String serviceId)voidsetStatusFlags(boolean retrieved, boolean loaded, boolean isNew)voidsetSubmittingOrganization(javax.xml.registry.infomodel.Organization org)Internal method for setting submitting organizationStringtoXML()Implementation may choose to throw an UnsupportedCapabilityException.-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
getSlot, getSlots
-
-
-
-
Method Detail
-
addSlot
public void addSlot(javax.xml.registry.infomodel.Slot slot) throws javax.xml.registry.JAXRExceptionOverride superclass to set isModified- Specified by:
addSlotin interfacejavax.xml.registry.infomodel.ExtensibleObject- Overrides:
addSlotin classExtensibleObjectImpl- Throws:
javax.xml.registry.JAXRException
-
addSlots
public void addSlots(Collection slots) throws javax.xml.registry.JAXRException
Override superclass to set isModified- Specified by:
addSlotsin interfacejavax.xml.registry.infomodel.ExtensibleObject- Overrides:
addSlotsin classExtensibleObjectImpl- Throws:
javax.xml.registry.JAXRException
-
removeSlot
public void removeSlot(String slotName) throws javax.xml.registry.JAXRException
Override superclass to set isModified- Specified by:
removeSlotin interfacejavax.xml.registry.infomodel.ExtensibleObject- Overrides:
removeSlotin classExtensibleObjectImpl- Throws:
javax.xml.registry.JAXRException
-
removeSlots
public void removeSlots(Collection slotNames) throws javax.xml.registry.JAXRException
Override superclass to set isModified- Specified by:
removeSlotsin interfacejavax.xml.registry.infomodel.ExtensibleObject- Overrides:
removeSlotsin classExtensibleObjectImpl- Throws:
javax.xml.registry.JAXRException
-
addAssociation
public void addAssociation(javax.xml.registry.infomodel.Association association) throws javax.xml.registry.JAXRExceptionAdds specified Association to use this object as source.- Specified by:
addAssociationin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
addAssociations
public void addAssociations(Collection associations) throws javax.xml.registry.JAXRException
Adds specified Associations to use this object as source. Treat null parameter as empty collection.- Specified by:
addAssociationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeAssociation
public void removeAssociation(javax.xml.registry.infomodel.Association association) throws javax.xml.registry.JAXRExceptionRemoves specified Association from this object.- Specified by:
removeAssociationin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeAssociations
public void removeAssociations(Collection associations) throws javax.xml.registry.JAXRException
Removes specified Associations from this object. Treat null parameter as empty collection.- Specified by:
removeAssociationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getAssociations
public Collection getAssociations() throws javax.xml.registry.JAXRException
Gets all Associations where this object is source.- Specified by:
getAssociationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setAssociations
public void setAssociations(Collection associations) throws javax.xml.registry.JAXRException
Replaces all previous Associations from this object with specified Associations. Treat null param as empty collection.- Specified by:
setAssociationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setAssociationsLoaded
public void setAssociationsLoaded(boolean loaded)
Internal method to set if associations are loaded
-
areAssociationsLoaded
public boolean areAssociationsLoaded()
Internal method to check if associations are loaded
-
addClassification
public void addClassification(javax.xml.registry.infomodel.Classification classification) throws javax.xml.registry.JAXRExceptionAdds specified Classification to this object.- Specified by:
addClassificationin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
addClassifications
public void addClassifications(Collection classifications) throws javax.xml.registry.JAXRException
Adds specified Classifications to this object. Treat null parameter as empty collection.- Specified by:
addClassificationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeClassification
public void removeClassification(javax.xml.registry.infomodel.Classification classification) throws javax.xml.registry.JAXRExceptionRemoves specified Classification from this object.- Specified by:
removeClassificationin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeClassifications
public void removeClassifications(Collection classifications) throws javax.xml.registry.JAXRException
Removes specified Classifications from this object. Treat null parameter as empty collection.- Specified by:
removeClassificationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getClassifications
public Collection getClassifications() throws javax.xml.registry.JAXRException
Gets the Classification that classify this object.- Specified by:
getClassificationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setClassifications
public void setClassifications(Collection classifications) throws javax.xml.registry.JAXRException
Replaces all previous Classifications with specified Classififications. Treat null param as empty collection.- Specified by:
setClassificationsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
addExternalIdentifier
public void addExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier identifier) throws javax.xml.registry.JAXRExceptionAdds specified ExternalIdentifier to this object.- Specified by:
addExternalIdentifierin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
addExternalIdentifiers
public void addExternalIdentifiers(Collection identifiers) throws javax.xml.registry.JAXRException
Adds specified ExternalIdentifiers to this object. Treat null parameter as empty collection.- Specified by:
addExternalIdentifiersin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeExternalIdentifier
public void removeExternalIdentifier(javax.xml.registry.infomodel.ExternalIdentifier externalIdentifier) throws javax.xml.registry.JAXRExceptionRemoves specified ExternalIdentifier from this object.- Specified by:
removeExternalIdentifierin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeExternalIdentifiers
public void removeExternalIdentifiers(Collection externalIdentifiers) throws javax.xml.registry.JAXRException
Removes specified ExternalIdentifiers from this object. Treat null parameter as empty collection.- Specified by:
removeExternalIdentifiersin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getExternalIdentifiers
public Collection getExternalIdentifiers() throws javax.xml.registry.JAXRException
Returns the ExternalIdentifiers associated with this object.- Specified by:
getExternalIdentifiersin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setExternalIdentifiers
public void setExternalIdentifiers(Collection externalIdentifiers) throws javax.xml.registry.JAXRException
Replaces all previous ExternalIdentifiers with specified ExternalIdentifiers. Treat null param as empty collection.- Specified by:
setExternalIdentifiersin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
addExternalLink
public void addExternalLink(javax.xml.registry.infomodel.ExternalLink link) throws javax.xml.registry.JAXRExceptionAdds specified ExternalLink to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.- Specified by:
addExternalLinkin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
addExternalLinks
public void addExternalLinks(Collection links) throws javax.xml.registry.JAXRException
Adds specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.- Specified by:
addExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeExternalLink
public void removeExternalLink(javax.xml.registry.infomodel.ExternalLink externalLink) throws javax.xml.registry.JAXRExceptionRemoves specified ExternalLink from this object.- Specified by:
removeExternalLinkin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
removeExternalLinks
public void removeExternalLinks(Collection externalLinks) throws javax.xml.registry.JAXRException
Removes specified ExternalLinks from this object. Treat null parameter as empty collection.- Specified by:
removeExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getExternalLinks
public Collection getExternalLinks() throws javax.xml.registry.JAXRException
Returns the ExternalLinks associated with this object.- Specified by:
getExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setExternalLinks
public void setExternalLinks(Collection links) throws javax.xml.registry.JAXRException
Sets specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.- Specified by:
setExternalLinksin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getDescription
public javax.xml.registry.infomodel.InternationalString getDescription() throws javax.xml.registry.JAXRExceptionGets the context independent textual description for this object. Description will not be null.- Specified by:
getDescriptionin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setDescription
public void setDescription(javax.xml.registry.infomodel.InternationalString description) throws javax.xml.registry.JAXRExceptionSet the desciption for the object- Specified by:
setDescriptionin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getName
public javax.xml.registry.infomodel.InternationalString getName() throws javax.xml.registry.JAXRExceptionGets user friendly context independent name of object in repository.- Specified by:
getNamein interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setName
public void setName(javax.xml.registry.infomodel.InternationalString name) throws javax.xml.registry.JAXRExceptionSet the name for the object- Specified by:
setNamein interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getKey
public javax.xml.registry.infomodel.Key getKey() throws javax.xml.registry.JAXRExceptionGet registry key identifying this object- Specified by:
getKeyin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setKey
public void setKey(javax.xml.registry.infomodel.Key key) throws javax.xml.registry.JAXRExceptionSet registry key on this object- Specified by:
setKeyin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getSubmittingOrganization
public javax.xml.registry.infomodel.Organization getSubmittingOrganization() throws javax.xml.registry.JAXRException- Specified by:
getSubmittingOrganizationin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setSubmittingOrganization
public void setSubmittingOrganization(javax.xml.registry.infomodel.Organization org) throws javax.xml.registry.JAXRExceptionInternal method for setting submitting organization- Throws:
javax.xml.registry.JAXRException
-
getConnection
public javax.xml.registry.Connection getConnection() throws javax.xml.registry.JAXRExceptionReturns the Connection associated with this object.- Throws:
javax.xml.registry.JAXRException
-
getLifeCycleManager
public javax.xml.registry.LifeCycleManager getLifeCycleManager()
- Specified by:
getLifeCycleManagerin interfacejavax.xml.registry.infomodel.RegistryObject
-
setLifeCycleManager
public void setLifeCycleManager(javax.xml.registry.LifeCycleManager manager)
Internal method for setting manager when object is created
-
setServiceId
public void setServiceId(String serviceId)
-
getServiceId
public String getServiceId()
-
setRegistryService
public void setRegistryService(javax.xml.registry.RegistryService service)
-
getRegistryService
public javax.xml.registry.RegistryService getRegistryService()
-
setStatusFlags
public void setStatusFlags(boolean retrieved, boolean loaded, boolean isNew)
-
isLoaded
public boolean isLoaded()
-
setIsLoaded
public void setIsLoaded(boolean loaded)
-
isRetrieved
public boolean isRetrieved()
-
setIsRetrieved
public void setIsRetrieved(boolean retrieved)
-
isNew
public boolean isNew()
-
setIsNew
public void setIsNew(boolean isNew)
-
isModified
public boolean isModified()
-
setIsModified
public void setIsModified(boolean modified)
-
isDeleted
public boolean isDeleted()
-
setIsDeleted
public void setIsDeleted(boolean deleted)
-
toXML
public String toXML() throws javax.xml.registry.JAXRException
Implementation may choose to throw an UnsupportedCapabilityException. Currently not implemented.- Specified by:
toXMLin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getAssociatedObjects
public Collection getAssociatedObjects() throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
getAssociatedObjectsin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getObjectType
public javax.xml.registry.infomodel.Concept getObjectType() throws javax.xml.registry.JAXRExceptionLevel 1 method- Specified by:
getObjectTypein interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
setObjectType
public void setObjectType(javax.xml.registry.infomodel.Concept objectType) throws javax.xml.registry.JAXRExceptionLevel 1 method- Throws:
javax.xml.registry.JAXRException
-
getAuditTrail
public Collection getAuditTrail() throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
getAuditTrailin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
getRegistryPackages
public Collection getRegistryPackages() throws javax.xml.registry.JAXRException
Level 1 method- Specified by:
getRegistryPackagesin interfacejavax.xml.registry.infomodel.RegistryObject- Throws:
javax.xml.registry.JAXRException
-
-