com.sun.xml.registry.uddi.infomodel
Class RegistryObjectImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
      extended by com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
All Implemented Interfaces:
Serializable, ExtensibleObject, RegistryObject
Direct Known Subclasses:
AssociationImpl, AuditableEventImpl, ClassificationImpl, ConceptImpl, ExternalIdentifierImpl, ExternalLinkImpl, OrganizationImpl, RegistryEntryImpl, ServiceBindingImpl, SpecificationLinkImpl, UserImpl

public abstract class RegistryObjectImpl
extends ExtensibleObjectImpl
implements RegistryObject, Serializable

Implementation of RegistryObject interface

Author:
Kathy Walsh, Bobby Bissett
See Also:
Serialized Form

Constructor Summary
RegistryObjectImpl()
          Default constructor
RegistryObjectImpl(Key key)
          Utility constructor used when key is known
RegistryObjectImpl(Key key, String description, String name)
          Utility constructor used when key, name, and description are known
 
Method Summary
 void addAssociation(Association association)
          Adds specified Association to use this object as source.
 void addAssociations(Collection associations)
          Adds specified Associations to use this object as source.
 void addClassification(Classification classification)
          Adds specified Classification to this object.
 void addClassifications(Collection classifications)
          Adds specified Classifications to this object.
 void addExternalIdentifier(ExternalIdentifier identifier)
          Adds specified ExternalIdentifier to this object.
 void addExternalIdentifiers(Collection identifiers)
          Adds specified ExternalIdentifiers to this object.
 void addExternalLink(ExternalLink link)
          Adds specified ExternalLink to this object.
 void addExternalLinks(Collection links)
          Adds specified ExternalLinks to this object.
 void addSlot(Slot slot)
          Override superclass to set isModified
 void addSlots(Collection slots)
          Override superclass to set isModified
 boolean areAssociationsLoaded()
          Internal method to check if associations are loaded
 Collection getAssociatedObjects()
          Level 1 method
 Collection getAssociations()
          Gets all Associations where this object is source.
 Collection getAuditTrail()
          Level 1 method
 Collection getClassifications()
          Gets the Classification that classify this object.
 Connection getConnection()
          Returns the Connection associated with this object.
 InternationalString getDescription()
          Gets the context independent textual description for this object.
 Collection getExternalIdentifiers()
          Returns the ExternalIdentifiers associated with this object.
 Collection getExternalLinks()
          Returns the ExternalLinks associated with this object.
 Key getKey()
          Get registry key identifying this object
 LifeCycleManager getLifeCycleManager()
          Returns the LifeCycleManager that created this object.
 InternationalString getName()
          Gets user friendly context independent name of object in repository.
 Concept getObjectType()
          Level 1 method
 Collection getRegistryPackages()
          Level 1 method
 RegistryService getRegistryService()
           
 String getServiceId()
           
 Organization getSubmittingOrganization()
          Gets the Organization that submitted this RegistryObject.
 boolean isDeleted()
           
 boolean isLoaded()
           
 boolean isModified()
           
 boolean isNew()
           
 boolean isRetrieved()
           
 void removeAssociation(Association association)
          Removes specified Association from this object.
 void removeAssociations(Collection associations)
          Removes specified Associations from this object.
 void removeClassification(Classification classification)
          Removes specified Classification from this object.
 void removeClassifications(Collection classifications)
          Removes specified Classifications from this object.
 void removeExternalIdentifier(ExternalIdentifier externalIdentifier)
          Removes specified ExternalIdentifier from this object.
 void removeExternalIdentifiers(Collection externalIdentifiers)
          Removes specified ExternalIdentifiers from this object.
 void removeExternalLink(ExternalLink externalLink)
          Removes specified ExternalLink from this object.
 void removeExternalLinks(Collection externalLinks)
          Removes specified ExternalLinks from this object.
 void removeSlot(String slotName)
          Override superclass to set isModified
 void removeSlots(Collection slotNames)
          Override superclass to set isModified
 void setAssociations(Collection associations)
          Replaces all previous Associations from this object with specified Associations.
 void setAssociationsLoaded(boolean loaded)
          Internal method to set if associations are loaded
 void setClassifications(Collection classifications)
          Replaces all previous Classifications with specified Classififications.
 void setDescription(InternationalString description)
          Set the desciption for the object
 void setExternalIdentifiers(Collection externalIdentifiers)
          Replaces all previous ExternalIdentifiers with specified ExternalIdentifiers.
 void setExternalLinks(Collection links)
          Sets specified ExternalLinks to this object.
 void setIsDeleted(boolean deleted)
           
 void setIsLoaded(boolean loaded)
           
 void setIsModified(boolean modified)
           
 void setIsNew(boolean isNew)
           
 void setIsRetrieved(boolean retrieved)
           
 void setKey(Key key)
          Set registry key on this object
 void setLifeCycleManager(LifeCycleManager manager)
          Internal method for setting manager when object is created
 void setName(InternationalString name)
          Set the name for the object
 void setObjectType(Concept objectType)
          Level 1 method
 void setRegistryService(RegistryService service)
           
 void setServiceId(String serviceId)
           
 void setStatusFlags(boolean retrieved, boolean loaded, boolean isNew)
           
 void setSubmittingOrganization(Organization org)
          Internal method for setting submitting organization
 String toXML()
          Implementation may choose to throw an UnsupportedCapabilityException.
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
getSlot, getSlots
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
getSlot, getSlots
 

Constructor Detail

RegistryObjectImpl

public RegistryObjectImpl()
Default constructor


RegistryObjectImpl

public RegistryObjectImpl(Key key)
Utility constructor used when key is known


RegistryObjectImpl

public RegistryObjectImpl(Key key,
                          String description,
                          String name)
Utility constructor used when key, name, and description are known

Method Detail

addSlot

public void addSlot(Slot slot)
             throws JAXRException
Override superclass to set isModified

Specified by:
addSlot in interface ExtensibleObject
Overrides:
addSlot in class ExtensibleObjectImpl
Parameters:
slot - the Slot object being added to this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

addSlots

public void addSlots(Collection slots)
              throws JAXRException
Override superclass to set isModified

Specified by:
addSlots in interface ExtensibleObject
Overrides:
addSlots in class ExtensibleObjectImpl
Parameters:
slots - the Collection of Slot objects being added to this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeSlot

public void removeSlot(String slotName)
                throws JAXRException
Override superclass to set isModified

Specified by:
removeSlot in interface ExtensibleObject
Overrides:
removeSlot in class ExtensibleObjectImpl
Parameters:
slotName - the name for the Slot object being removed from this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeSlots

public void removeSlots(Collection slotNames)
                 throws JAXRException
Override superclass to set isModified

Specified by:
removeSlots in interface ExtensibleObject
Overrides:
removeSlots in class ExtensibleObjectImpl
Parameters:
slotNames - the Collection of names for Slot objects being removed from this object. Must be a Collection of Strings
Throws:
JAXRException - If the JAXR provider encounters an internal error

addAssociation

public void addAssociation(Association association)
                    throws JAXRException
Adds specified Association to use this object as source.

Specified by:
addAssociation in interface RegistryObject
Parameters:
association - the Association being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

addAssociations

public void addAssociations(Collection associations)
                     throws JAXRException
Adds specified Associations to use this object as source. Treat null parameter as empty collection.

Specified by:
addAssociations in interface RegistryObject
Parameters:
associations - the Collection of Associations being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeAssociation

public void removeAssociation(Association association)
                       throws JAXRException
Removes specified Association from this object.

Specified by:
removeAssociation in interface RegistryObject
Parameters:
association - the Association being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeAssociations

public void removeAssociations(Collection associations)
                        throws JAXRException
Removes specified Associations from this object. Treat null parameter as empty collection.

Specified by:
removeAssociations in interface RegistryObject
Parameters:
associations - the Collection of Associations being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

getAssociations

public Collection getAssociations()
                           throws JAXRException
Gets all Associations where this object is source.

Specified by:
getAssociations in interface RegistryObject
Returns:
Collection of Association instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
Association

setAssociations

public void setAssociations(Collection associations)
                     throws JAXRException
Replaces all previous Associations from this object with specified Associations. Treat null param as empty collection.

Specified by:
setAssociations in interface RegistryObject
Parameters:
associations - the Collection of Associations being set
Throws:
JAXRException - If the JAXR provider encounters an internal error

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(Classification classification)
                       throws JAXRException
Adds specified Classification to this object.

Specified by:
addClassification in interface RegistryObject
Parameters:
classification - the Classification being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

addClassifications

public void addClassifications(Collection classifications)
                        throws JAXRException
Adds specified Classifications to this object. Treat null parameter as empty collection.

Specified by:
addClassifications in interface RegistryObject
Parameters:
classifications - the Collection of Classifications being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeClassification

public void removeClassification(Classification classification)
                          throws JAXRException
Removes specified Classification from this object.

Specified by:
removeClassification in interface RegistryObject
Parameters:
classification - the Classification being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeClassifications

public void removeClassifications(Collection classifications)
                           throws JAXRException
Removes specified Classifications from this object. Treat null parameter as empty collection.

Specified by:
removeClassifications in interface RegistryObject
Parameters:
classifications - the Collection of Classifications being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

getClassifications

public Collection getClassifications()
                              throws JAXRException
Gets the Classification that classify this object.

Specified by:
getClassifications in interface RegistryObject
Returns:
Collection of Classification instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
Classification

setClassifications

public void setClassifications(Collection classifications)
                        throws JAXRException
Replaces all previous Classifications with specified Classififications. Treat null param as empty collection.

Specified by:
setClassifications in interface RegistryObject
Parameters:
classifications - the Collection of Classifications being set
Throws:
JAXRException - If the JAXR provider encounters an internal error

addExternalIdentifier

public void addExternalIdentifier(ExternalIdentifier identifier)
                           throws JAXRException
Adds specified ExternalIdentifier to this object.

Specified by:
addExternalIdentifier in interface RegistryObject
Parameters:
identifier - the ExternalIdentifier being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

addExternalIdentifiers

public void addExternalIdentifiers(Collection identifiers)
                            throws JAXRException
Adds specified ExternalIdentifiers to this object. Treat null parameter as empty collection.

Specified by:
addExternalIdentifiers in interface RegistryObject
Parameters:
identifiers - the Collection of ExternalIdentifiers being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeExternalIdentifier

public void removeExternalIdentifier(ExternalIdentifier externalIdentifier)
                              throws JAXRException
Removes specified ExternalIdentifier from this object.

Specified by:
removeExternalIdentifier in interface RegistryObject
Parameters:
externalIdentifier - the ExternalIdentifier being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeExternalIdentifiers

public void removeExternalIdentifiers(Collection externalIdentifiers)
                               throws JAXRException
Removes specified ExternalIdentifiers from this object. Treat null parameter as empty collection.

Specified by:
removeExternalIdentifiers in interface RegistryObject
Parameters:
externalIdentifiers - the Collection of ExternalIdentifiers being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

getExternalIdentifiers

public Collection getExternalIdentifiers()
                                  throws JAXRException
Returns the ExternalIdentifiers associated with this object.

Specified by:
getExternalIdentifiers in interface RegistryObject
Returns:
Collection of ExternalIdentifier instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
ExternalIdentifier

setExternalIdentifiers

public void setExternalIdentifiers(Collection externalIdentifiers)
                            throws JAXRException
Replaces all previous ExternalIdentifiers with specified ExternalIdentifiers. Treat null param as empty collection.

Specified by:
setExternalIdentifiers in interface RegistryObject
Parameters:
externalIdentifiers - the Collection of ExternalIdentifiers being set
Throws:
JAXRException - If the JAXR provider encounters an internal error

addExternalLink

public void addExternalLink(ExternalLink link)
                     throws JAXRException
Adds specified ExternalLink to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.

Specified by:
addExternalLink in interface RegistryObject
Throws:
JAXRException - If the JAXR provider encounters an internal error

addExternalLinks

public void addExternalLinks(Collection links)
                      throws JAXRException
Adds specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.

Specified by:
addExternalLinks in interface RegistryObject
Parameters:
links - the Collection of ExternalLinks being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeExternalLink

public void removeExternalLink(ExternalLink externalLink)
                        throws JAXRException
Removes specified ExternalLink from this object.

Specified by:
removeExternalLink in interface RegistryObject
Parameters:
externalLink - the ExternalLink being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeExternalLinks

public void removeExternalLinks(Collection externalLinks)
                         throws JAXRException
Removes specified ExternalLinks from this object. Treat null parameter as empty collection.

Specified by:
removeExternalLinks in interface RegistryObject
Parameters:
externalLinks - the Collection of ExternalLinks being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

getExternalLinks

public Collection getExternalLinks()
                            throws JAXRException
Returns the ExternalLinks associated with this object.

Specified by:
getExternalLinks in interface RegistryObject
Returns:
Collection of ExternalLink instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
ExternalLink

setExternalLinks

public void setExternalLinks(Collection links)
                      throws JAXRException
Sets specified ExternalLinks to this object. Can only be added to Organization, Concept, ClassificationScheme, and SpecificationLink.

Specified by:
setExternalLinks in interface RegistryObject
Throws:
JAXRException - If the JAXR provider encounters an internal error

getDescription

public InternationalString getDescription()
                                   throws JAXRException
Gets the context independent textual description for this object. Description will not be null.

Specified by:
getDescription in interface RegistryObject
Returns:
the description for this object which must not be null
Throws:
JAXRException - If the JAXR provider encounters an internal error

setDescription

public void setDescription(InternationalString description)
                    throws JAXRException
Set the desciption for the object

Specified by:
setDescription in interface RegistryObject
Parameters:
description - the description for this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getName

public InternationalString getName()
                            throws JAXRException
Gets user friendly context independent name of object in repository.

Specified by:
getName in interface RegistryObject
Returns:
the name for this object which must not be null.
Throws:
JAXRException - If the JAXR provider encounters an internal error

setName

public void setName(InternationalString name)
             throws JAXRException
Set the name for the object

Specified by:
setName in interface RegistryObject
Parameters:
name - the name for this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getKey

public Key getKey()
           throws JAXRException
Get registry key identifying this object

Specified by:
getKey in interface RegistryObject
Returns:
the Key for this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

setKey

public void setKey(Key key)
            throws JAXRException
Set registry key on this object

Specified by:
setKey in interface RegistryObject
Parameters:
key - the key for this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getSubmittingOrganization

public Organization getSubmittingOrganization()
                                       throws JAXRException
Description copied from interface: RegistryObject
Gets the Organization that submitted this RegistryObject.

Specified by:
getSubmittingOrganization in interface RegistryObject
Returns:
the Organization that submitted this object to the registry
Throws:
JAXRException - If the JAXR provider encounters an internal error

setSubmittingOrganization

public void setSubmittingOrganization(Organization org)
                               throws JAXRException
Internal method for setting submitting organization

Throws:
JAXRException

getConnection

public Connection getConnection()
                         throws JAXRException
Returns the Connection associated with this object.

Throws:
JAXRException

getLifeCycleManager

public LifeCycleManager getLifeCycleManager()
Description copied from interface: RegistryObject
Returns the LifeCycleManager that created this object.

Capability Level: 0

Specified by:
getLifeCycleManager in interface RegistryObject
Returns:
the LifeCycleManager objet that created this object

setLifeCycleManager

public void setLifeCycleManager(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(RegistryService service)

getRegistryService

public 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 JAXRException
Implementation may choose to throw an UnsupportedCapabilityException. Currently not implemented.

Specified by:
toXML in interface RegistryObject
Returns:
the String containing the XML representation for this object
Throws:
JAXRException - If the JAXR provider encounters an internal error

getAssociatedObjects

public Collection getAssociatedObjects()
                                throws JAXRException
Level 1 method

Specified by:
getAssociatedObjects in interface RegistryObject
Returns:
Collection of RegistryObject instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
RegistryObject

getObjectType

public Concept getObjectType()
                      throws JAXRException
Level 1 method

Specified by:
getObjectType in interface RegistryObject
Returns:
the object type as a Concept within the pre-defined ClassificationScheme named ObjectType
Throws:
JAXRException - If the JAXR provider encounters an internal error

setObjectType

public void setObjectType(Concept objectType)
                   throws JAXRException
Level 1 method

Throws:
JAXRException

getAuditTrail

public Collection getAuditTrail()
                         throws JAXRException
Level 1 method

Specified by:
getAuditTrail in interface RegistryObject
Returns:
Collection of AuditableEvent instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
AuditableEvent

getRegistryPackages

public Collection getRegistryPackages()
                               throws JAXRException
Level 1 method

Specified by:
getRegistryPackages in interface RegistryObject
Returns:
Collection of RegistryPackage instances. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
RegistryPackage


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.