Package com.sas.lsaf.core.type
Class AttributeDefinition
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.core.type.AttributeDefinition
- All Implemented Interfaces:
Identifiable,Serializable
Information about the attributes that are defined on a
Type. Object types are defined by the system and provide
extended attributes that can be defined by end users.- Since:
- 1.7
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enumeration that defines the data type that is stored by the attribute. -
Constructor Summary
ConstructorsConstructorDescriptionAttributeDefinition(String id, String name, AttributeDefinition.AttributeType attributeType, boolean inherited, boolean editable, boolean extended, boolean required) Initializing constructor that allocates anAttributeDefinitionand that sets all attributes to the specified values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the data type of the attribute definition.getName()Gets the name of the attribute definition.inthashCode()booleanIndicates whether the attribute can be modified by an end user.booleanIndicates whether the attribute definition is an extended attribute (defined by an end user) or an attribute defined by the system.booleanIndicates whether the attribute definition is defined on a super type and, therefore is inherited or whether the definition is defined on the enclosing type.booleanIndicates whether the attribute is required to have a value.toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
Constructor Details
-
AttributeDefinition
public AttributeDefinition(String id, String name, AttributeDefinition.AttributeType attributeType, boolean inherited, boolean editable, boolean extended, boolean required) Initializing constructor that allocates anAttributeDefinitionand that sets all attributes to the specified values.- Parameters:
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.
-
-
Method Details
-
getName
Gets the name of the attribute definition.- Returns:
- The name of the attribute definition.
-
getAttributeType
Gets the data type of the attribute definition.- Returns:
- The data type of the attribute definition.
-
isInherited
public 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.- Returns:
True, if the attribute definition is inherited from a super type,Falseotherwise.
-
isEditable
public boolean isEditable()Indicates whether the attribute can be modified by an end user.- Returns:
True, if the attribute can be modified by an end-user,Falseotherwise.
-
isExtended
public boolean isExtended()Indicates whether the attribute definition is an extended attribute (defined by an end user) or an attribute defined by the system.- Returns:
True, if the attribute definition is defined as an extended attribute by an end user,False, if the attribute definition is system-defined.
-
isRequired
public boolean isRequired()Indicates whether the attribute is required to have a value.- Returns:
True, if the attribute is required to have a value,Falseotherwise.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractIdentifiable
-
equals
- Overrides:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-