org.kuali.rice.ksb.api.registry
Class ServiceDescriptor.Builder

java.lang.Object
  extended by org.kuali.rice.ksb.api.registry.ServiceDescriptor.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, ServiceDescriptorContract
Enclosing class:
ServiceDescriptor

public static final class ServiceDescriptor.Builder
extends Object
implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, ServiceDescriptorContract

A builder which can be used to construct ServiceDescriptor instances. Enforces the constraints of the ServiceDescriptorContract.

See Also:
Serialized Form

Method Summary
 ServiceDescriptor build()
           
static ServiceDescriptor.Builder create()
           
static ServiceDescriptor.Builder create(ServiceDescriptorContract contract)
           
 String getDescriptor()
          Returns an XML value which can be used to materialize the ServiceConfiguration for the service.
 String getId()
          Returns the id of this service descriptor.
 Long getVersionNumber()
           
 void setDescriptor(String descriptor)
           
 void setId(String id)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ServiceDescriptor.Builder create()

create

public static ServiceDescriptor.Builder create(ServiceDescriptorContract contract)

build

public ServiceDescriptor build()
Specified by:
build in interface org.kuali.rice.core.api.mo.ModelBuilder

getId

public String getId()
Description copied from interface: ServiceDescriptorContract
Returns the id of this service descriptor. This value should be unique across service descriptors. This value is generated when the service is published to the registry, so this value can be null if the service has not yet been published to the registry.

Specified by:
getId in interface ServiceDescriptorContract
Returns:
the id of this service descriptor, or null if the service and it's descriptor has not yet been published to the registry

getDescriptor

public String getDescriptor()
Description copied from interface: ServiceDescriptorContract
Returns an XML value which can be used to materialize the ServiceConfiguration for the service.

Specified by:
getDescriptor in interface ServiceDescriptorContract
Returns:
the XML representation of the ServiceConfiguration for the service, should never return a null or blank value

getVersionNumber

public Long getVersionNumber()
Specified by:
getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned

setId

public void setId(String id)

setDescriptor

public void setDescriptor(String descriptor)

setVersionNumber

public void setVersionNumber(Long versionNumber)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.