Class DocumentAttribute.AbstractBuilder<T>
java.lang.Object
org.kuali.rice.kew.api.document.attribute.DocumentAttribute.AbstractBuilder<T>
- Type Parameters:
T- the type of the value contained within the document attribute that is built by this builder
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.ModelBuilder,DocumentAttributeContract
- Direct Known Subclasses:
DocumentAttributeDateTime.Builder,DocumentAttributeDecimal.Builder,DocumentAttributeInteger.Builder,DocumentAttributeString.Builder
- Enclosing class:
DocumentAttribute
public abstract static class DocumentAttribute.AbstractBuilder<T>
extends Object
implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, DocumentAttributeContract
An abstract base class that can be extended by concrete builder implementations of subclasses of
DocumentAttribute.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DocumentAttributebuild()Build theDocumentAttributefor this builder based on it's current state.getName()Returns the name of this document attribute which serves as an identifier for this attribute on the document.getValue()Returns the value of this document attribute.voidSets the name of the document attribute that will be built by this builder.voidSets 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, waitMethods inherited from interface org.kuali.rice.kew.api.document.attribute.DocumentAttributeContract
getDataType
-
Constructor Details
-
AbstractBuilder
-
-
Method Details
-
getName
Description copied from interface:DocumentAttributeContractReturns the name of this document attribute which serves as an identifier for this attribute on the document. A document may have more then one attribute with the same name, in which case it is treated as a multi-valued attribute. This method should never return a null or blank value.- Specified by:
getNamein interfaceDocumentAttributeContract- Returns:
- the name of the document attribute
-
setName
Sets the name of the document attribute that will be built by this builder.- Parameters:
name- the name of the document attribute to set, must not be a null or blank value- Throws:
IllegalArgumentException- if the given name is a null or blank value.
-
getValue
Description copied from interface:DocumentAttributeContractReturns the value of this document attribute. It can be of any type as defined by the implementations of this interface. It is possible that this value may be null in cases where the document has a particular attribute but no actual value associated with that attribute.- Specified by:
getValuein interfaceDocumentAttributeContract- Returns:
- the value of the document attribute
-
setValue
Sets the value of the document attribute that will be built by this builder.- Parameters:
value- the value of the document attribute to set
-
build
Build theDocumentAttributefor this builder based on it's current state.- Specified by:
buildin interfaceorg.kuali.rice.core.api.mo.ModelBuilder- Returns:
- the instantiated instance of
DocumentAttributewhich was built by this builder
-