public class AttributeDefinition extends AbstractIdentifiable
Type
. Object types are defined by the system and provide
extended attributes that can be defined by end users.TypeService
,
Type
,
Type.getAttributeDefinitions()
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
AttributeDefinition.AttributeType
The enumeration that defines the data type that is stored by the attribute.
|
Constructor and Description |
---|
AttributeDefinition(String id,
String name,
AttributeDefinition.AttributeType attributeType,
boolean inherited,
boolean editable,
boolean extended,
boolean required)
Initializing constructor that allocates an
AttributeDefinition and that sets all attributes to the
specified values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AttributeDefinition.AttributeType |
getAttributeType()
Gets the data type of the attribute definition.
|
String |
getName()
Gets the name of the attribute definition.
|
int |
hashCode() |
boolean |
isEditable()
Indicates whether the attribute can be modified by an end user.
|
boolean |
isExtended()
Indicates whether the attribute definition is an extended attribute (defined by an end user) or an attribute defined by the
system.
|
boolean |
isInherited()
Indicates whether the attribute definition is defined on a super type and, therefore is inherited or whether
the definition is defined on the enclosing type.
|
boolean |
isRequired()
Indicates whether the attribute is required to have a value.
|
String |
toString() |
getId, getTypeId
public AttributeDefinition(String id, String name, AttributeDefinition.AttributeType attributeType, boolean inherited, boolean editable, boolean extended, boolean required)
AttributeDefinition
and that sets all attributes to the
specified values.id
- the unique identifier for the attribute definition.name
- the display name of the attribute definition.attributeType
- the data type of the attribute that is represented by the attribute definition.inherited
- indicates whether the attribute definition is inherited from a super type.editable
- indicates whether the attribute that is represented by the attribute definition is editable by end users.extended
- indicates whether the attribute definition is defined as an extended attribute.required
- indicates whether the attribute that is represented by the attribute definition is a required field.public String getName()
public AttributeDefinition.AttributeType getAttributeType()
public boolean isInherited()
True
, if the attribute definition is inherited from a super type, False
otherwise.public boolean isEditable()
True
, if the attribute can be modified by an end-user, False
otherwise.public boolean isExtended()
True
, if the attribute definition is defined as an extended attribute by an end user,
False
, if the attribute definition is system-defined.public boolean isRequired()
True
, if the attribute is required to have a value, False
otherwise.public int hashCode()
hashCode
in class AbstractIdentifiable
public boolean equals(Object obj)
equals
in class AbstractIdentifiable
public String toString()
toString
in class AbstractIdentifiable
<i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>