public class AttributeDefinition extends Object implements Serializable
Type
. Object types are defined by the system and provide
default attributes as well as extended attributes that can be defined by end-users.Type.getAttributeDefinitions()
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
AttributeDefinition.AttributeType
The enumeration of value types that an attribute can have.
|
Constructor and Description |
---|
AttributeDefinition(String name,
String displayName,
AttributeDefinition.AttributeType attributeType,
boolean inherited,
boolean editable,
boolean extended,
boolean required)
Initializing constructor which allocates a new
AttributeDefinition and sets all attributes to the
specified values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
AttributeDefinition.AttributeType |
getAttributeType()
Returns the data type of this attribute definition.
|
String |
getDisplayName()
Returns the display name of this attribute definition.
|
String |
getName()
Returns the name of the attribute defined.
|
int |
hashCode()
Return a hash code value for the object.
|
boolean |
isEditable()
Returns the boolean value indicating if this attribute defined to be modifiable by an end user.
|
boolean |
isExtended()
Returns whether or not this is an extended attribute (defined by an end-user), or an attribute defined by the
system.
|
boolean |
isInherited()
Returns whether or not this attribute definition was defined on a super type and therefore inherited or whether
this definition was defined on the enclosing type.
|
boolean |
isRequired()
Returns whether or not this attribute is required to have a value.
|
String |
toString()
Return a string representation of the object.
|
public AttributeDefinition(String name, String displayName, AttributeDefinition.AttributeType attributeType, boolean inherited, boolean editable, boolean extended, boolean required)
AttributeDefinition
and sets all attributes to the
specified values.name
- The name of this attribute definition.displayName
- The display name of this attribute definition.attributeType
- The data type of the attribute represented by this attribute definition.inherited
- If this attribute definition was inherited from a super type.editable
- If the attribute represented by this attribute definition is editable by end-users.extended
- If this attribute definition was defined as an extended attribute.required
- If the attribute represented by this attribute definition is a required field.public String getName()
public String getDisplayName()
public AttributeDefinition.AttributeType getAttributeType()
public boolean isInherited()
true
if this attribute definition was inherited from a super type, false
otherwise.public boolean isEditable()
true
if this attribute can be modified by an end-user, false
otherwise.public boolean isExtended()
true
if this attribute definition was defined as an extended attribute by an end-user,
false
if the attribute definition is system-defined.public boolean isRequired()
true
if this attribute is required to have a value, false
otherwise.public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA