org.kuali.student.datadictionary.dto
Class AttributeDefinitionInfo

java.lang.Object
  extended by org.kuali.student.datadictionary.dto.AttributeDefinitionInfo
All Implemented Interfaces:
Serializable, AttributeDefinitionInfc

public class AttributeDefinitionInfo
extends Object
implements AttributeDefinitionInfc, Serializable

See Also:
Serialized Form

Nested Class Summary
static class AttributeDefinitionInfo.Builder
           
 
Field Summary
private  String childEntryName
           
private  String customValidatorClass
           
private  org.kuali.rice.kns.datadictionary.validation.DataType dataType
           
private  String description
           
private  String displayLabelAttribute
           
private  String exclusiveMin
           
private  Boolean forceUppercase
           
private  String formatterClass
           
private  String inclusiveMax
           
private  String label
           
private  Integer maxLength
           
private  Integer maxOccurs
           
private  Integer minLength
           
private  Integer minOccurs
           
private  String name
           
private  Boolean required
           
private static long serialVersionUID
           
private  String shortLabel
           
private  String summary
           
private  Boolean unique
           
private  ValidCharactersConstraintInfo validCharactersConstraint
           
 
Constructor Summary
  AttributeDefinitionInfo()
           
private AttributeDefinitionInfo(AttributeDefinitionInfc infc)
           
 
Method Summary
 String getChildEntryName()
          Name: child entry name deprecated
 String getCustomValidatorClass()
          Name: Custom Validator Class Class to do custom validation
 org.kuali.rice.kns.datadictionary.validation.DataType getDataType()
          Name: Data Type The type of data this attribite (field) holds.
 String getDescription()
          Name: Description The description element is used to provide a long description of the attribute or collection.
 String getDisplayLabelAttribute()
          Name: Display Label Attribute The displayLabelAttribute element is used to indicate that the label and short label should be obtained from another attribute.
 String getExclusiveMin()
          Name: Exclusive Minimum The exclusiveMin element determines the minimum allowable value for data entry editing purposes.
 Boolean getForceUppercase()
          Name: Force Uppercase forceUppercase = convert user entry to uppercase and always display database value as uppercase.
 String getFormatterClass()
          Name: Formatter Class The formatterClass element is used when custom formatting is required for display of the field value.
 String getInclusiveMax()
          Name: Exclusive Maximum The inclusiveMax element determines the maximum allowable value for data entry editing purposes.
 String getLabel()
          Name: Label The label element is the field or collection name that will be shown on inquiry and maintenance screens.
 Integer getMaxLength()
          Name: Maximum Length The maxLength element determines the maximum size of the field for data entry edit purposes and for display purposes.
 Integer getMaxOccurs()
          Name: Maximum Occurrences The maximum number of allowed occurences of this field TODO: Get RICE to rename this getMaxOccurs so it matches the setter TODO: Get RICE to set a value that means UNBOUNDED, perhaps 999999999
 Integer getMinLength()
          Name: Minimum Length The miniumum length allowed for the field
 Integer getMinOccurs()
          Name: Minimum Occurences The minimum number of allowed occurences TODO: get Rice to rename this to getMinOccurs to it matches the setter.
 String getName()
          Name: Name The name of the attribute (or field).
 String getShortLabel()
          Name: Short Label The shortLabel element is the field or collection name that will be used in applications when a shorter name (than the label element) is required.
 String getSummary()
          Name: Summary The summary element is used to provide a short description of the attribute or collection.
 ValidCharactersConstraintInfo getValidCharactersConstraint()
          Name: Valid Characters Constraint The constraint that applies regular expressions to to the value TODO: Ask RICE to create an interface for ValidCharactersConstraint so we can return that instead of the generic constraint
 Boolean isRequired()
          Name: Required The required element allows values of "true" or "false".
 Boolean isUnique()
          Name: Unique Similar to a db column that is flagged as unique, the value is unique across all data objects of that type TODO: ask if this should be isUnique instead of getUnique?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

name

private String name

childEntryName

private String childEntryName

dataType

private org.kuali.rice.kns.datadictionary.validation.DataType dataType

required

private Boolean required

minOccurs

private Integer minOccurs

maxOccurs

private Integer maxOccurs

minLength

private Integer minLength

maxLength

private Integer maxLength

forceUppercase

private Boolean forceUppercase

shortLabel

private String shortLabel

summary

private String summary

label

private String label

description

private String description

exclusiveMin

private String exclusiveMin

inclusiveMax

private String inclusiveMax

displayLabelAttribute

private String displayLabelAttribute

unique

private Boolean unique

customValidatorClass

private String customValidatorClass

formatterClass

private String formatterClass

validCharactersConstraint

private ValidCharactersConstraintInfo validCharactersConstraint
Constructor Detail

AttributeDefinitionInfo

public AttributeDefinitionInfo()

AttributeDefinitionInfo

private AttributeDefinitionInfo(AttributeDefinitionInfc infc)
Method Detail

getName

public String getName()
Description copied from interface: AttributeDefinitionInfc
Name: Name The name of the attribute (or field). Should match the field name on the corresponding business object. TODO: figure out how to handle sub-objects. I.e. using dot notation? name = name of attribute

Specified by:
getName in interface AttributeDefinitionInfc

getChildEntryName

public String getChildEntryName()
Description copied from interface: AttributeDefinitionInfc
Name: child entry name deprecated

Specified by:
getChildEntryName in interface AttributeDefinitionInfc

getDataType

public org.kuali.rice.kns.datadictionary.validation.DataType getDataType()
Description copied from interface: AttributeDefinitionInfc
Name: Data Type The type of data this attribite (field) holds. I.e. STRING, INTEGER, DATE, LONG, DATETIME, COMPLEX, etc.

Specified by:
getDataType in interface AttributeDefinitionInfc

isRequired

public Boolean isRequired()
Description copied from interface: AttributeDefinitionInfc
Name: Required The required element allows values of "true" or "false". A value of "true" indicates that a value must be entered for this business object when creating or editing a new business object.

Specified by:
isRequired in interface AttributeDefinitionInfc

getMinOccurs

public Integer getMinOccurs()
Description copied from interface: AttributeDefinitionInfc
Name: Minimum Occurences The minimum number of allowed occurences TODO: get Rice to rename this to getMinOccurs to it matches the setter.

Specified by:
getMinOccurs in interface AttributeDefinitionInfc

getMaxOccurs

public Integer getMaxOccurs()
Description copied from interface: AttributeDefinitionInfc
Name: Maximum Occurrences The maximum number of allowed occurences of this field TODO: Get RICE to rename this getMaxOccurs so it matches the setter TODO: Get RICE to set a value that means UNBOUNDED, perhaps 999999999

Specified by:
getMaxOccurs in interface AttributeDefinitionInfc

getMinLength

public Integer getMinLength()
Description copied from interface: AttributeDefinitionInfc
Name: Minimum Length The miniumum length allowed for the field

Specified by:
getMinLength in interface AttributeDefinitionInfc

getMaxLength

public Integer getMaxLength()
Description copied from interface: AttributeDefinitionInfc
Name: Maximum Length The maxLength element determines the maximum size of the field for data entry edit purposes and for display purposes.

Specified by:
getMaxLength in interface AttributeDefinitionInfc

getForceUppercase

public Boolean getForceUppercase()
Description copied from interface: AttributeDefinitionInfc
Name: Force Uppercase forceUppercase = convert user entry to uppercase and always display database value as uppercase.

Specified by:
getForceUppercase in interface AttributeDefinitionInfc

getShortLabel

public String getShortLabel()
Description copied from interface: AttributeDefinitionInfc
Name: Short Label The shortLabel element is the field or collection name that will be used in applications when a shorter name (than the label element) is required. This will be overridden by presence of displayLabelAttribute element.

Specified by:
getShortLabel in interface AttributeDefinitionInfc

getSummary

public String getSummary()
Description copied from interface: AttributeDefinitionInfc
Name: Summary The summary element is used to provide a short description of the attribute or collection. This is designed to be used for help purposes.

Specified by:
getSummary in interface AttributeDefinitionInfc

getLabel

public String getLabel()
Description copied from interface: AttributeDefinitionInfc
Name: Label The label element is the field or collection name that will be shown on inquiry and maintenance screens. This will be overridden by presence of displayLabelAttribute element.

Specified by:
getLabel in interface AttributeDefinitionInfc

getDescription

public String getDescription()
Description copied from interface: AttributeDefinitionInfc
Name: Description The description element is used to provide a long description of the attribute or collection. This is designed to be used for help purposes.

Specified by:
getDescription in interface AttributeDefinitionInfc

getExclusiveMin

public String getExclusiveMin()
Description copied from interface: AttributeDefinitionInfc
Name: Exclusive Minimum The exclusiveMin element determines the minimum allowable value for data entry editing purposes. Value can be an integer or decimal value such as -.001 or 99.

Specified by:
getExclusiveMin in interface AttributeDefinitionInfc

getInclusiveMax

public String getInclusiveMax()
Description copied from interface: AttributeDefinitionInfc
Name: Exclusive Maximum The inclusiveMax element determines the maximum allowable value for data entry editing purposes. Value can be an integer or decimal value such as -.001 or 99. JSTL: This field is mapped into the field named "exclusiveMax".

Specified by:
getInclusiveMax in interface AttributeDefinitionInfc

getDisplayLabelAttribute

public String getDisplayLabelAttribute()
Description copied from interface: AttributeDefinitionInfc
Name: Display Label Attribute The displayLabelAttribute element is used to indicate that the label and short label should be obtained from another attribute. The label element and short label element defined for this attribute will be overridden. Instead, the label and short label values will be obtained by referencing the corresponding values from the attribute indicated by this element.

Specified by:
getDisplayLabelAttribute in interface AttributeDefinitionInfc

isUnique

public Boolean isUnique()
Description copied from interface: AttributeDefinitionInfc
Name: Unique Similar to a db column that is flagged as unique, the value is unique across all data objects of that type TODO: ask if this should be isUnique instead of getUnique?

Specified by:
isUnique in interface AttributeDefinitionInfc

getCustomValidatorClass

public String getCustomValidatorClass()
Description copied from interface: AttributeDefinitionInfc
Name: Custom Validator Class Class to do custom validation

Specified by:
getCustomValidatorClass in interface AttributeDefinitionInfc

getFormatterClass

public String getFormatterClass()
Description copied from interface: AttributeDefinitionInfc
Name: Formatter Class The formatterClass element is used when custom formatting is required for display of the field value. This field specifies the name of the java class to be used for the formatting. About 15 different classes are available including BooleanFormatter, CurrencyFormatter, DateFormatter, etc.

Specified by:
getFormatterClass in interface AttributeDefinitionInfc

getValidCharactersConstraint

public ValidCharactersConstraintInfo getValidCharactersConstraint()
Description copied from interface: AttributeDefinitionInfc
Name: Valid Characters Constraint The constraint that applies regular expressions to to the value TODO: Ask RICE to create an interface for ValidCharactersConstraint so we can return that instead of the generic constraint

Specified by:
getValidCharactersConstraint in interface AttributeDefinitionInfc


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.