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 |
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, wait
getDataType
protected AbstractBuilder(String name)
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 valueIllegalArgumentException
- 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 builderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.