org.kuali.rice.krms.api.repository.term
Class TermResolverDefinition.Builder

java.lang.Object
  extended by org.kuali.rice.krms.api.repository.term.TermResolverDefinition.Builder
All Implemented Interfaces:
Serializable, Inactivatable, Identifiable, Versioned, ModelBuilder, TermResolverDefinitionContract
Enclosing class:
TermResolverDefinition

public static class TermResolverDefinition.Builder
extends Object
implements TermResolverDefinitionContract, ModelBuilder, Serializable

See Also:
Serialized Form

Method Summary
 TermResolverDefinition build()
          This overridden method ...
static TermResolverDefinition.Builder create(String id, String namespaceCode, String name, String typeId, TermSpecificationDefinition.Builder output, Set<TermSpecificationDefinition.Builder> prerequisites, Map<String,String> attributes, Set<String> parameterNames)
           
static TermResolverDefinition.Builder create(TermResolverDefinitionContract termResolver)
           
 Map<String,String> getAttributes()
           
 String getId()
          The unique identifier for an object.
 String getName()
           
 String getNamespace()
           
 TermSpecificationDefinition.Builder getOutput()
           
 Set<String> getParameterNames()
           
 Set<TermSpecificationDefinition.Builder> getPrerequisites()
           
 String getTypeId()
           
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
           
 void setAttributes(Map<String,String> attributes)
           
 void setId(String id)
           
 void setName(String name)
           
 void setNamespace(String namespace)
           
 void setOutput(TermSpecificationDefinition.Builder output)
           
 void setParameterNames(Set<String> parameterNames)
           
 void setPrerequisites(Set<TermSpecificationDefinition.Builder> prerequisites)
           
 void setTypeId(String typeId)
           
 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 TermResolverDefinition.Builder create(TermResolverDefinitionContract termResolver)

create

public static TermResolverDefinition.Builder create(String id,
                                                    String namespaceCode,
                                                    String name,
                                                    String typeId,
                                                    TermSpecificationDefinition.Builder output,
                                                    Set<TermSpecificationDefinition.Builder> prerequisites,
                                                    Map<String,String> attributes,
                                                    Set<String> parameterNames)

setId

public void setId(String id)
Parameters:
id - the id to set

setNamespace

public void setNamespace(String namespace)
Parameters:
namespace - the namespace to set

setName

public void setName(String name)
Parameters:
name - the name to set

setTypeId

public void setTypeId(String typeId)
Parameters:
typeId - the typeId to set

setActive

public void setActive(boolean active)
Parameters:
active - the active indicator

setOutput

public void setOutput(TermSpecificationDefinition.Builder output)
Parameters:
output - the output to set

setPrerequisites

public void setPrerequisites(Set<TermSpecificationDefinition.Builder> prerequisites)
Parameters:
prerequisites - the prerequisites to set

setAttributes

public void setAttributes(Map<String,String> attributes)
Parameters:
attributes - the attributes to set

setParameterNames

public void setParameterNames(Set<String> parameterNames)
Parameters:
parameterNames - the parameterNames to set

setVersionNumber

public void setVersionNumber(Long versionNumber)
Parameters:
versionNumber - the versionNumber to set. May be null.

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface TermResolverDefinitionContract
Returns:
the namespace

getName

public String getName()
Specified by:
getName in interface TermResolverDefinitionContract
Returns:
the name

getTypeId

public String getTypeId()
Specified by:
getTypeId in interface TermResolverDefinitionContract
Returns:
the typeId

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
the active indicator

getOutput

public TermSpecificationDefinition.Builder getOutput()
Specified by:
getOutput in interface TermResolverDefinitionContract
Returns:
the output

getPrerequisites

public Set<TermSpecificationDefinition.Builder> getPrerequisites()
Specified by:
getPrerequisites in interface TermResolverDefinitionContract
Returns:
the prerequisites

getAttributes

public Map<String,String> getAttributes()
Specified by:
getAttributes in interface TermResolverDefinitionContract
Returns:
the attributes

getParameterNames

public Set<String> getParameterNames()
Specified by:
getParameterNames in interface TermResolverDefinitionContract
Returns:
the parameterNames

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number

build

public TermResolverDefinition build()
This overridden method ...

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null
See Also:
ModelBuilder.build()


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