Class SpecificationLinkImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- 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
Constructors Constructor Description SpecificationLinkImpl()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExternalLink(ExternalLink link)Overrides behavior in RegistryObjectImpl to allow adding external links.voidaddExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.KeygetKey()Override the behavior in RegistryObject to return a provider generated id.ServiceBindinggetServiceBinding()Get the parent ServiceBindingRegistryObjectgetSpecificationObject()Get specification objectInternationalStringgetUsageDescription()Gets the description of usage paramaters.CollectiongetUsageParameters()Gets any optional usage parameters.voidsetExternalLinks(Collection links)Overrides behavior in RegistryObjectImpl to allow adding external links.voidsetServiceBinding(ServiceBinding binding)Internal method for setting the service bindingvoidsetSpecificationObject(RegistryObject obj)Set specification object.voidsetUsageDescription(InternationalString usageDescription)Sets the description of usage paramaters.voidsetUsageParameters(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.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
-
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
-
-
-
-
Method Detail
-
getSpecificationObject
public RegistryObject getSpecificationObject()
Get specification object- Specified by:
getSpecificationObjectin interfaceSpecificationLink- 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:
setSpecificationObjectin interfaceSpecificationLink- 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:
getUsageDescriptionin interfaceSpecificationLink- 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:
setUsageDescriptionin interfaceSpecificationLink- 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:
getUsageParametersin interfaceSpecificationLink- 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:
setUsageParametersin interfaceSpecificationLink- 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:
getServiceBindingin interfaceSpecificationLink- 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:
addExternalLinkin interfaceRegistryObject- Overrides:
addExternalLinkin classRegistryObjectImpl- 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:
addExternalLinksin interfaceRegistryObject- Overrides:
addExternalLinksin classRegistryObjectImpl- 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:
setExternalLinksin interfaceRegistryObject- Overrides:
setExternalLinksin classRegistryObjectImpl- 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:
getKeyin interfaceRegistryObject- Overrides:
getKeyin classRegistryObjectImpl- Returns:
- the Key for this object
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
-