T - the type of the value contained within the document attribute that is built by this builderpublic abstract static class DocumentAttribute.AbstractBuilder<T> extends Object implements Serializable, ModelBuilder, DocumentAttributeContract
DocumentAttribute.| Modifier | Constructor and Description |
|---|---|
protected |
DocumentAttribute.AbstractBuilder(String name) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataTypeprotected DocumentAttribute.AbstractBuilder(String name)
public String getName()
DocumentAttributeContractgetName in interface DocumentAttributeContractpublic void setName(String name)
name - the name of the document attribute to set, must not be a null or blank valueIllegalArgumentException - if the given name is a null or blank value.public T getValue()
DocumentAttributeContractgetValue in interface DocumentAttributeContractpublic 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 ModelBuilderDocumentAttribute which was built by this builderCopyright © 2005–2015 The Kuali Foundation. All rights reserved.