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,javax.xml.registry.infomodel.ExtensibleObject,javax.xml.registry.infomodel.ExternalLink,javax.xml.registry.infomodel.RegistryObject,javax.xml.registry.infomodel.URIValidator
public class ExternalLinkImpl extends RegistryObjectImpl implements javax.xml.registry.infomodel.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 resourcejavax.xml.registry.infomodel.KeygetKey()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 javax.xml.registry.JAXRExceptionDefault constructor initializes list and creates URIValidatorImpl object for delgating uri validations tasks.- Throws:
javax.xml.registry.JAXRException
-
ExternalLinkImpl
public ExternalLinkImpl(String uri) throws javax.xml.registry.JAXRException
Utility constructor used when URI is given.- Throws:
javax.xml.registry.JAXRException
-
-
Method Detail
-
getLinkedObjects
public Collection getLinkedObjects() throws javax.xml.registry.JAXRException
Gets the collection of RegistryObjects that are annotated by this ExternalLink- Specified by:
getLinkedObjectsin interfacejavax.xml.registry.infomodel.ExternalLink- Throws:
javax.xml.registry.JAXRException
-
setValidateURI
public void setValidateURI(boolean validate) throws javax.xml.registry.JAXRExceptionTurns validation on or off.- Specified by:
setValidateURIin interfacejavax.xml.registry.infomodel.URIValidator- Throws:
javax.xml.registry.JAXRException- See Also:
URIValidatorImpl
-
getValidateURI
public boolean getValidateURI()
Whether or not validation is turned on- Specified by:
getValidateURIin interfacejavax.xml.registry.infomodel.URIValidator- See Also:
URIValidatorImpl
-
getExternalURI
public String getExternalURI() throws javax.xml.registry.JAXRException
Gets URI to the an external resource- Specified by:
getExternalURIin interfacejavax.xml.registry.infomodel.ExternalLink- Throws:
javax.xml.registry.JAXRException
-
setExternalURI
public void setExternalURI(String externalUri) throws javax.xml.registry.JAXRException
Sets URI for an external resource. Throws an exception if the uri is invalid (when validation is on).- Specified by:
setExternalURIin interfacejavax.xml.registry.infomodel.ExternalLink- Throws:
javax.xml.registry.JAXRException
-
getKey
public javax.xml.registry.infomodel.Key getKey() throws javax.xml.registry.JAXRExceptionOverride 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 interfacejavax.xml.registry.infomodel.RegistryObject- Overrides:
getKeyin classRegistryObjectImpl- Throws:
javax.xml.registry.JAXRException
-
-