/** * Constructs a new AttributeDefinition object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param attributeName A name for the attribute. * @param attributeType The data type for the attribute. */ public AttributeDefinition(String attributeName, ScalarAttributeType attributeType) { setAttributeName(attributeName); setAttributeType(attributeType.toString()); }
/** * The data type for the attribute. * * @param attributeType The data type for the attribute. * @return Returns a reference to this object so that method calls can be chained together. * @see ScalarAttributeType */ public void setAttributeType(ScalarAttributeType attributeType) { this.attributeType = attributeType.toString(); }