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()
          Gets any attributes specified on the term resolver definition.
 String getId()
          The unique identifier for an object.
 String getName()
          Gets the name for the defined term resolver.
 String getNamespace()
          Gets the namespace for the defined term resolver.
 TermSpecificationDefinition.Builder getOutput()
          Gets the term specification for the output of the defined term resolver.
 Set<String> getParameterNames()
          Gets the names of any parameters that the defined term resolver requires.
 Set<TermSpecificationDefinition.Builder> getPrerequisites()
          Gets the term specifications for any prerequisite terms of the defined term resolver.
 String getTypeId()
          Gets the type id for the defined term resolver.
 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()
Description copied from interface: TermResolverDefinitionContract
Gets the namespace for the defined term resolver. Will not be null or empty.

Specified by:
getNamespace in interface TermResolverDefinitionContract
Returns:
the namespace

getName

public String getName()
Description copied from interface: TermResolverDefinitionContract
Gets the name for the defined term resolver. The namespace and name should uniquely identify a term resolver definition. Will not be null or empty.

Specified by:
getName in interface TermResolverDefinitionContract
Returns:
the name

getTypeId

public String getTypeId()
Description copied from interface: TermResolverDefinitionContract
Gets the type id for the defined term resolver. This id refers to a type which configures how the term resolver may be obtained. May be null, but never empty.

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()
Description copied from interface: TermResolverDefinitionContract
Gets the term specification for the output of the defined term resolver. Will never be null.

Specified by:
getOutput in interface TermResolverDefinitionContract
Returns:
the output

getPrerequisites

public Set<TermSpecificationDefinition.Builder> getPrerequisites()
Description copied from interface: TermResolverDefinitionContract
Gets the term specifications for any prerequisite terms of the defined term resolver. May be empty, but will never be null.

Specified by:
getPrerequisites in interface TermResolverDefinitionContract
Returns:
the prerequisites

getAttributes

public Map<String,String> getAttributes()
Description copied from interface: TermResolverDefinitionContract
Gets any attributes specified on the term resolver definition. May be empty, but never null.

Specified by:
getAttributes in interface TermResolverDefinitionContract
Returns:
the attributes

getParameterNames

public Set<String> getParameterNames()
Description copied from interface: TermResolverDefinitionContract
Gets the names of any parameters that the defined term resolver requires. May be empty, but never null.

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-2013 The Kuali Foundation. All Rights Reserved.