public class AttributeDef extends BaseAttributeDefinition
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEAFELEMENT_HINT |
static java.lang.String |
LEAFELEMENT_NO_ATTRIBUTE |
static java.lang.String |
LEAFELEMENT_WITH_ATTRIBUTE |
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 |
|---|
AttributeDef(java.lang.String name,
StructureDefinition parent,
java.lang.String javaType)
Creates an attribute definition.
|
AttributeDef(java.lang.String name,
StructureDefinition parent,
java.lang.String javaType,
boolean isReadOnly,
boolean isKey)
Creates an attribute definition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(java.util.Map props)
Adds custom properties to this object.
|
void |
addProperty(java.lang.String propName,
java.lang.Object value)
Adds a custom property to this object.
|
java.lang.String |
getBindPath()
Gets the bind path of the definition if set.
|
Definition |
getDefinitionParent()
Returns the parent of this attribute.
|
int |
getDefinitionType()
Retrieves the type of the variable.
|
java.lang.String |
getFullName()
Returns the full name of the definition.
|
java.lang.String |
getName()
Gets the displyable name.
|
java.util.Hashtable |
getProperties()
Returns a
Hashtable containing all the custom properties set
against this object. |
java.lang.Object |
getProperty(java.lang.String propName)
Returns a custom property value given its name.
|
protected void |
initPropertyMap()
Internal: Applications should not use this method.
|
protected boolean |
isPropertyMapNull()
Internal: Applications should not use this method.
|
protected void |
putProperty(java.lang.String propName,
java.lang.Object value)
Internal: Applications should not use this method.
|
void |
setBindPath(java.lang.String path)
Sets the bind path.
|
void |
setName(java.lang.String name)
Sets a displyable name.
|
getSourceTypeString, isKey, isReadOnly, setReadOnly, setSourceTypeStringgetDataControlDefinition, getJavaTypeString, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataControlDefinition, getJavaTypeStringpublic static final java.lang.String LEAFELEMENT_HINT
public static final java.lang.String LEAFELEMENT_NO_ATTRIBUTE
public static final java.lang.String LEAFELEMENT_WITH_ATTRIBUTE
public AttributeDef(java.lang.String name,
StructureDefinition parent,
java.lang.String javaType,
boolean isReadOnly,
boolean isKey)
name - name of this attribute.parent - parent of this attribute.javaType - equivalent Java type of this attribute
(e.g. java.lang.String).isReadOnly - flag to determine if the value of this attribute is
read-only.isKey - flag to indicate if the attribute is a key.public AttributeDef(java.lang.String name,
StructureDefinition parent,
java.lang.String javaType)
name - name of this attribute.parent - parent of this attribute.javaType - equivalent Java type of this attribute
(e.g. java.lang.String).public void setName(java.lang.String name)
public java.lang.String getName()
getName in interface NamedDefinitiongetName in class BaseValueObjectDefinitionpublic void addProperty(java.lang.String propName,
java.lang.Object value)
propName - Name of the custom propertyvalue - Value of the custom propertypublic java.lang.Object getProperty(java.lang.String propName)
getProperty in interface NamedDefinitiongetProperty in class BaseValueObjectDefinitionpropName - Name of the custom property whose value is to be
retrieved.public void addProperties(java.util.Map props)
props - properties have to be added.public java.util.Hashtable getProperties()
Hashtable containing all the custom properties set
against this object.getProperties in interface NamedDefinitiongetProperties in class BaseValueObjectDefinitionHashtable consisting of all the custom properties.public void setBindPath(java.lang.String path)
public java.lang.String getBindPath()
public java.lang.String getFullName()
getFullName in interface NamedDefinitiongetFullName in class BaseValueObjectDefinitionpublic int getDefinitionType()
BaseValueObjectDefinitiongetDefinitionType in interface DefinitiongetDefinitionType in class BaseAttributeDefinitionpublic Definition getDefinitionParent()
getDefinitionParent in interface NamedDefinitiongetDefinitionParent in class BaseValueObjectDefinitionprotected final boolean isPropertyMapNull()
protected final void initPropertyMap()
protected final void putProperty(java.lang.String propName,
java.lang.Object value)