public class BaseAttributeDefinition extends BaseValueObjectDefinition implements AttributeDefinition
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_CRITERIA, TYPE_CRITERIA_ITEM, TYPE_CRITERIA_OPERATOR, TYPE_CRITERIA_ROW, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_NAMED, TYPE_OPERATION, TYPE_OPERATIONRETURN, TYPE_PARAMETER, TYPE_STRUCTURE, TYPE_VARIABLE| Constructor and Description | 
|---|
BaseAttributeDefinition(java.lang.String id,
                       NamedDefinition parent,
                       java.lang.String javaType,
                       boolean isReadOnly,
                       boolean isKey)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getDefinitionType()
Retrieves the type of the variable. 
 | 
java.lang.String | 
getSourceTypeString()
Returns the actual java type of the attribute in the data source. 
 | 
boolean | 
isKey()
Finds out whether this attribute is the primary key of the row. 
 | 
boolean | 
isReadOnly()
Finds out whether this attribute is read-only or is updateable. 
 | 
void | 
setReadOnly(boolean isReadOnly)
Specify whether this attribute is read-only or is updateable. 
 | 
void | 
setSourceTypeString(java.lang.String sourceTypeString)
Set the java type of this attribute in the data source. 
 | 
getDataControlDefinition, getDefinitionParent, getFullName, getJavaTypeString, getName, getProperties, getProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataControlDefinition, getJavaTypeStringgetDefinitionParent, getFullName, getName, getProperties, getPropertypublic BaseAttributeDefinition(java.lang.String id,
                               NamedDefinition parent,
                               java.lang.String javaType,
                               boolean isReadOnly,
                               boolean isKey)
id - Identifier, or name, of the attribute.parent - Metadata of the parent structure.javaType - Fully-qualified Java class name of the attribute type.isReadOnly - Whether the attribute is read-only.isKey - Whether the attribute is the primary key of a row.public boolean isReadOnly()
isReadOnly in interface AttributeDefinitionpublic void setReadOnly(boolean isReadOnly)
public void setSourceTypeString(java.lang.String sourceTypeString)
sourceTypeString - A String representing the java type.public boolean isKey()
isKey in interface AttributeDefinitionpublic java.lang.String getSourceTypeString()
getSourceTypeString in interface AttributeDefinitionpublic int getDefinitionType()
BaseValueObjectDefinitiongetDefinitionType in interface DefinitiongetDefinitionType in class BaseValueObjectDefinition