Class DocumentAttributeDateTime.Builder

java.lang.Object
org.kuali.rice.kew.api.document.attribute.DocumentAttribute.AbstractBuilder<org.joda.time.DateTime>
org.kuali.rice.kew.api.document.attribute.DocumentAttributeDateTime.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, DocumentAttributeContract
Enclosing class:
DocumentAttributeDateTime

public static final class DocumentAttributeDateTime.Builder extends DocumentAttribute.AbstractBuilder<org.joda.time.DateTime>
A builder implementation which allows for construction of a DocumentAttributeDateTime.
See Also:
  • Method Details

    • create

      public static DocumentAttributeDateTime.Builder create(String name)
      Create a builder for the document attribute using the given attribute name.
      Parameters:
      name - the name of the document attribute which should be built by this builder, should never be a null or blank value
      Returns:
      a builder instance initialized with the given attribute name
    • getDataType

      public DocumentAttributeDataType getDataType()
      Description copied from interface: DocumentAttributeContract
      Returns the data type of this document attribute. This will generally inform the type of object returned from the #getValue method. This method should never return a null value.
      Returns:
      the data type of this document attribute
    • build

      public DocumentAttributeDateTime build()
      Description copied from class: DocumentAttribute.AbstractBuilder
      Build the DocumentAttribute for this builder based on it's current state.
      Specified by:
      build in interface ModelBuilder
      Specified by:
      build in class DocumentAttribute.AbstractBuilder<org.joda.time.DateTime>
      Returns:
      the instantiated instance of DocumentAttribute which was built by this builder