org.kuali.rice.krms.api.repository
Class NaturalLanguageTree.Builder

java.lang.Object
  extended by org.kuali.rice.krms.api.repository.NaturalLanguageTree.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, NaturalLanguageTreeContract
Enclosing class:
NaturalLanguageTree

public static class NaturalLanguageTree.Builder
extends Object
implements NaturalLanguageTreeContract, ModelBuilder, Serializable

This builder is used to construct instances of KRMS Repository Agenda. It enforces the constraints of the NaturalLanguageTreeContract.

See Also:
Serialized Form

Method Summary
 NaturalLanguageTree build()
          Builds an instance of a Natural Language Tree based on the current state of the builder.
static NaturalLanguageTree.Builder create()
          Creates a builder by populating it with data from the given NaturalLanguageTreeContract.
static NaturalLanguageTree.Builder create(NaturalLanguageTreeContract contract)
          Creates a builder by populating it with data from the given NaturalLanguageTreeContract.
 List<? extends NaturalLanguageTreeContract> getChildren()
          Returns the natural language for children of this node
 String getNaturalLanguage()
          Returns the natural language representation for this node in the tree
 void setChildren(List<? extends NaturalLanguageTreeContract> children)
           
 void setNaturalLanguage(String naturalLanguage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNaturalLanguage

public String getNaturalLanguage()
Description copied from interface: NaturalLanguageTreeContract
Returns the natural language representation for this node in the tree

Specified by:
getNaturalLanguage in interface NaturalLanguageTreeContract
Returns:
the natural language representation for this node in the tree

setNaturalLanguage

public void setNaturalLanguage(String naturalLanguage)

getChildren

public List<? extends NaturalLanguageTreeContract> getChildren()
Description copied from interface: NaturalLanguageTreeContract
Returns the natural language for children of this node

Specified by:
getChildren in interface NaturalLanguageTreeContract
Returns:
the natural language for children of this node

setChildren

public void setChildren(List<? extends NaturalLanguageTreeContract> children)

create

public static NaturalLanguageTree.Builder create()
Creates a builder by populating it with data from the given NaturalLanguageTreeContract.

Parameters:
contract - the contract from which to populate this builder
Returns:
an instance of the builder populated with data from the contract
Throws:
IllegalArgumentException - if the contract is null

create

public static NaturalLanguageTree.Builder create(NaturalLanguageTreeContract contract)
Creates a builder by populating it with data from the given NaturalLanguageTreeContract.

Parameters:
contract - the contract from which to populate this builder
Returns:
an instance of the builder populated with data from the contract
Throws:
IllegalArgumentException - if the contract is null

build

public NaturalLanguageTree build()
Builds an instance of a Natural Language Tree based on the current state of the builder.

Specified by:
build in interface ModelBuilder
Returns:
the fully-constructed Agenda


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