Class ExternalLinkImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.infomodel.ExtensibleObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
-
- com.sun.xml.registry.uddi.infomodel.ExternalLinkImpl
-
- All Implemented Interfaces:
Serializable,ExtensibleObject,ExternalLink,RegistryObject,URIValidator
public class ExternalLinkImpl extends RegistryObjectImpl implements ExternalLink, Serializable
Implementation of ExternalLink interface- Author:
- Farrukh S. Najmi, Kathy Walsh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExternalLinkImpl()Default constructor initializes list and creates URIValidatorImpl object for delgating uri validations tasks.ExternalLinkImpl(String uri)Utility constructor used when URI is given.ExternalLinkImpl(String uri, String description)Utility constructor with URI and description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExternalURI()Gets URI to the an external resourceKeygetKey()Override the behavior in RegistryObject to return a provider generated id.CollectiongetLinkedObjects()Gets the collection of RegistryObjects that are annotated by this ExternalLinkbooleangetValidateURI()Whether or not validation is turned onvoidsetExternalURI(String externalUri)Sets URI for an external resource.voidsetValidateURI(boolean validate)Turns validation on or off.-
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryObjectImpl
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, 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, setExternalLinks, 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, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
-
-
-
-
Constructor Detail
-
ExternalLinkImpl
public ExternalLinkImpl() throws JAXRExceptionDefault constructor initializes list and creates URIValidatorImpl object for delgating uri validations tasks.- Throws:
JAXRException
-
ExternalLinkImpl
public ExternalLinkImpl(String uri) throws JAXRException
Utility constructor used when URI is given.- Throws:
JAXRException
-
ExternalLinkImpl
public ExternalLinkImpl(String uri, String description) throws JAXRException
Utility constructor with URI and description.- Throws:
JAXRException
-
-
Method Detail
-
getLinkedObjects
public Collection getLinkedObjects() throws JAXRException
Gets the collection of RegistryObjects that are annotated by this ExternalLink- Specified by:
getLinkedObjectsin interfaceExternalLink- Returns:
- Collection of RegistryObjects. Return an empty Collection if no RegistryObjects are annotated by this object.
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setValidateURI
public void setValidateURI(boolean validate) throws JAXRExceptionTurns validation on or off.- Specified by:
setValidateURIin interfaceURIValidator- Parameters:
validate-trueimplies JAXR provider must perform validation of URIs when they are set;falseimplies validation is turned off- Throws:
JAXRException- If the JAXR provider encounters an internal error- See Also:
URIValidatorImpl
-
getValidateURI
public boolean getValidateURI()
Whether or not validation is turned on- Specified by:
getValidateURIin interfaceURIValidator- Returns:
trueimplies JAXR provider must perform validation of URIs when they are set;falseimplies validation is turned off- See Also:
URIValidatorImpl
-
getExternalURI
public String getExternalURI() throws JAXRException
Gets URI to the an external resource- Specified by:
getExternalURIin interfaceExternalLink- Returns:
- the URI String for this object (e.g. "http://java.sun.com")
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setExternalURI
public void setExternalURI(String externalUri) throws JAXRException
Sets URI for an external resource. Throws an exception if the uri is invalid (when validation is on).- Specified by:
setExternalURIin interfaceExternalLink- Parameters:
externalUri- the URI String for this object (e.g. "http://java.sun.com")- 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. Gets a sequence id from the first parent registry object in registryObjects ArrayList.- Specified by:
getKeyin interfaceRegistryObject- Overrides:
getKeyin classRegistryObjectImpl- Returns:
- the Key for this object
- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
-