|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.api.document.attribute.DocumentAttribute.AbstractBuilder<T>
T
- the type of the value contained within the document attribute that is built by this builderpublic abstract static class DocumentAttribute.AbstractBuilder<T>
An abstract base class that can be extended by concrete builder implementations of subclasses of
DocumentAttribute
.
Constructor Summary | |
---|---|
protected |
DocumentAttribute.AbstractBuilder(String name)
|
Method Summary | |
---|---|
abstract DocumentAttribute |
build()
Build the DocumentAttribute for this builder based on it's current state. |
String |
getName()
Returns the name of this document attribute which serves as an identifier for this attribute on the document. |
T |
getValue()
Returns the value of this document attribute. |
void |
setName(String name)
Sets the name of the document attribute that will be built by this builder. |
void |
setValue(T value)
Sets the value of the document attribute that will be built by this builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kew.api.document.attribute.DocumentAttributeContract |
---|
getDataType |
Constructor Detail |
---|
protected DocumentAttribute.AbstractBuilder(String name)
Method Detail |
---|
public String getName()
DocumentAttributeContract
getName
in interface DocumentAttributeContract
public void setName(String name)
name
- the name of the document attribute to set, must not be a null or blank value
IllegalArgumentException
- if the given name is a null or blank value.public T getValue()
DocumentAttributeContract
getValue
in interface DocumentAttributeContract
public void setValue(T value)
value
- the value of the document attribute to setpublic abstract DocumentAttribute build()
DocumentAttribute
for this builder based on it's current state.
build
in interface ModelBuilder
DocumentAttribute
which was built by this builder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |