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

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.RegistryEntryImpl
              extended by com.sun.xml.registry.uddi.infomodel.ServiceImpl
All Implemented Interfaces:
Serializable, ExtensibleObject, RegistryEntry, RegistryObject, Service, Versionable

public class ServiceImpl
extends RegistryEntryImpl
implements Service, Serializable

Implementation of Service interface.

Author:
kwalsh, Bobby Bissett
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.xml.registry.infomodel.RegistryEntry
STABILITY_DYNAMIC, STABILITY_DYNAMIC_COMPATIBLE, STABILITY_STATIC, STATUS_APPROVED, STATUS_DEPRECATED, STATUS_SUBMITTED, STATUS_WITHDRAWN
 
Constructor Summary
ServiceImpl()
          Default constructor
ServiceImpl(String name)
          Creates new ServiceImpl with the given name
 
Method Summary
 void addServiceBinding(ServiceBinding serviceBinding)
          Add a child ServiceBinding.
 void addServiceBindings(Collection serviceBindings)
          Add a Collection of ServiceBinding children.
 Organization getProvidingOrganization()
          Get the organization that provides this service
 Collection getServiceBindings()
          Get the service bindings
 void removeServiceBinding(ServiceBinding serviceBinding)
          Remove a child ServiceBinding.
 void removeServiceBindings(Collection serviceBindings)
          Remove a Collection of children ServiceBindings.
 void setProvidingOrganization(Organization org)
          Set the organization that provides this service
 
Methods inherited from class com.sun.xml.registry.uddi.infomodel.RegistryEntryImpl
getExpiration, getMajorVersion, getMinorVersion, getStability, getStatus, getUserVersion, setExpiration, setMajorVersion, setMinorVersion, setStability, setUserVersion
 
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, getKey, 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.RegistryEntry
getExpiration, getStability, getStatus, setExpiration, setStability
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistryPackages, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots
 
Methods inherited from interface javax.xml.registry.infomodel.Versionable
getMajorVersion, getMinorVersion, getUserVersion, setMajorVersion, setMinorVersion, setUserVersion
 

Constructor Detail

ServiceImpl

public ServiceImpl()
Default constructor


ServiceImpl

public ServiceImpl(String name)
Creates new ServiceImpl with the given name

Method Detail

getProvidingOrganization

public Organization getProvidingOrganization()
                                      throws JAXRException
Get the organization that provides this service

Specified by:
getProvidingOrganization in interface Service
Returns:
the Organization that provides this service
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
RegistryObject.getSubmittingOrganization()

setProvidingOrganization

public void setProvidingOrganization(Organization org)
                              throws JAXRException
Set the organization that provides this service

Specified by:
setProvidingOrganization in interface Service
Parameters:
org - the Organization that provides this service
Throws:
JAXRException - If the JAXR provider encounters an internal error

addServiceBinding

public void addServiceBinding(ServiceBinding serviceBinding)
                       throws JAXRException
Add a child ServiceBinding. Sets service on the binding.

Specified by:
addServiceBinding in interface Service
Parameters:
serviceBinding - the ServiceBinding being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

addServiceBindings

public void addServiceBindings(Collection serviceBindings)
                        throws JAXRException
Add a Collection of ServiceBinding children. Treats null param as an empty collection.

Specified by:
addServiceBindings in interface Service
Parameters:
serviceBindings - the Collection of ServiceBindings being added
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeServiceBinding

public void removeServiceBinding(ServiceBinding serviceBinding)
                          throws JAXRException
Remove a child ServiceBinding.

Specified by:
removeServiceBinding in interface Service
Parameters:
serviceBinding - the ServiceBinding being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

removeServiceBindings

public void removeServiceBindings(Collection serviceBindings)
                           throws JAXRException
Remove a Collection of children ServiceBindings. Treats null param as an empty collection.

Specified by:
removeServiceBindings in interface Service
Parameters:
serviceBindings - the Collection of ServiceBindings being removed
Throws:
JAXRException - If the JAXR provider encounters an internal error

getServiceBindings

public Collection getServiceBindings()
                              throws JAXRException
Get the service bindings

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


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