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

java.lang.Object
  extended by com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
      extended by com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
          extended by com.sun.xml.registry.uddi.infomodel.SpecificationLinkImpl
All Implemented Interfaces:
Serializable, ExtensibleObject, RegistryObject, SpecificationLink

public class SpecificationLinkImpl
extends RegistryObjectImpl
implements SpecificationLink, Serializable

Implementation of SpecificationLink interface

Author:
Farrukh S. Najmi, Bobby Bissett
See Also:
Serialized Form

Constructor Summary
SpecificationLinkImpl()
          Default constructor
 
Method Summary
 void addExternalLink(ExternalLink link)
          Overrides behavior in RegistryObjectImpl to allow adding external links.
 void addExternalLinks(Collection links)
          Overrides behavior in RegistryObjectImpl to allow adding external links.
 Key getKey()
          Override the behavior in RegistryObject to return a provider generated id.
 ServiceBinding getServiceBinding()
          Get the parent ServiceBinding
 RegistryObject getSpecificationObject()
          Get specification object
 InternationalString getUsageDescription()
          Gets the description of usage paramaters.
 Collection getUsageParameters()
          Gets any optional usage parameters.
 void setExternalLinks(Collection links)
          Overrides behavior in RegistryObjectImpl to allow adding external links.
 void setServiceBinding(ServiceBinding binding)
          Internal method for setting the service binding
 void setSpecificationObject(RegistryObject obj)
          Set specification object.
 void setUsageDescription(InternationalString usageDescription)
          Sets the description of usage paramaters.
 void setUsageParameters(Collection usageParameters)
          Sets any optional usage parameters.
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addSlot, addSlots, areAssociationsLoaded, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getConnection, getDescription, getExternalIdentifiers, getExternalLinks, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getRegistryService, getServiceId, getSubmittingOrganization, isDeleted, isLoaded, isModified, isNew, isRetrieved, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, removeSlot, removeSlots, setAssociations, setAssociationsLoaded, setClassifications, setDescription, setExternalIdentifiers, setIsDeleted, setIsLoaded, setIsModified, setIsNew, setIsRetrieved, setKey, setLifeCycleManager, setName, setObjectType, setRegistryService, setServiceId, setStatusFlags, setSubmittingOrganization, toXML
 
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.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setKey, setName, toXML
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 

Constructor Detail

SpecificationLinkImpl

public SpecificationLinkImpl()
Default constructor

Method Detail

getSpecificationObject

public RegistryObject getSpecificationObject()
Get specification object

Specified by:
getSpecificationObject in interface SpecificationLink
Returns:
the RegistryObject that is the specification object. For a UDDI provider the specification object must be a Concept with no parent. For an ebXML provider it is likely to be an ExtrinsicObject.

setSpecificationObject

public void setSpecificationObject(RegistryObject obj)
                            throws JAXRException
Set specification object. For UDDI, this must be a Concept.

Specified by:
setSpecificationObject in interface SpecificationLink
Parameters:
obj - the RegistryObject that is the specification object. For a UDDI provider the specification object must be a Concept with no parent. For an ebXML provider it is likely to be an ExtrinsicObject.
Throws:
JAXRException - If the JAXR provider encounters an internal error

getUsageDescription

public InternationalString getUsageDescription()
Gets the description of usage paramaters.

Specified by:
getUsageDescription in interface SpecificationLink
Returns:
the usage description for this object, which must not be null

setUsageDescription

public void setUsageDescription(InternationalString usageDescription)
Sets the description of usage paramaters.

Specified by:
setUsageDescription in interface SpecificationLink
Parameters:
usageDescription - the description of usage parameters for this object

getUsageParameters

public Collection getUsageParameters()
Gets any optional usage parameters. Each parameter is a String

Specified by:
getUsageParameters in interface SpecificationLink
Returns:
the Collection of String instances. The Collection may be empty but not null.

setUsageParameters

public void setUsageParameters(Collection usageParameters)
                        throws JAXRException
Sets any optional usage parameters. This method checks to make sure that all parameters in the collection are strings. A null collection is treated as an empty collection.

Specified by:
setUsageParameters in interface SpecificationLink
Parameters:
usageParameters - the Collection of usage parameter Strings
Throws:
JAXRException - If the JAXR provider encounters an internal error

getServiceBinding

public ServiceBinding getServiceBinding()
Get the parent ServiceBinding

Specified by:
getServiceBinding in interface SpecificationLink
Returns:
the parent ServiceBinding within which this object is composed

setServiceBinding

public void setServiceBinding(ServiceBinding binding)
Internal method for setting the service binding


addExternalLink

public void addExternalLink(ExternalLink link)
                     throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists, this method throws UnsupportedCapabilityException. See appendix D of specification.

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

addExternalLinks

public void addExternalLinks(Collection links)
                      throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists or if the collection contains more than one external link, this method throws UnsupportedCapabilityException. See appendix D of specification.

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

setExternalLinks

public void setExternalLinks(Collection links)
                      throws JAXRException
Overrides behavior in RegistryObjectImpl to allow adding external links. If an external link already exists or if the collection contains more than one external link, this method throws UnsupportedCapabilityException. See appendix D of specification.

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

getKey

public Key getKey()
           throws JAXRException
Override the behavior in RegistryObject to return a provider generated id.

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


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