public class AttributeMetaData extends java.lang.Object implements AppConnMetaData
METADATA_TYPE_ATTRIBUTE, METADATA_TYPE_COLUMN, METADATA_TYPE_FIELD, METADATA_TYPE_OPERATION, METADATA_TYPE_PROCEDURE, METADATA_TYPE_RECORDSET, METADATA_TYPE_VARIABLE
Constructor and Description |
---|
AttributeMetaData(EntityAttributeMeta saObject)
Constructor for internal use only.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Gets the description specified in the Design Tool for the attribute.
|
int |
getLength()
Gets the length of the attribute -- the total number of screen characters.
|
int |
getMetaDataType()
Gets the meta data type for this object.
|
java.lang.String |
getName()
Gets the name of the attribute.
|
java.lang.String |
getReadVariable()
Gets the name of the variable mapped to this attribute for reading.
|
java.lang.String |
getWriteVariable()
Gets the name of the variable mapped to this attribute
for writing.
|
boolean |
isReadable()
Discovers whether the attribute is readable.
|
boolean |
isWriteable()
Discovers whether the attribute is writable.
|
boolean |
terminalAttributesEnabled()
Discovers whether the terminal attributes are enabled for the attribute.
|
java.lang.String |
toString()
Generates a String object that represents the current
values of this AttributeMetaData object.
|
public AttributeMetaData(EntityAttributeMeta saObject)
saObject
- datapublic java.lang.String getDescription()
getDescription
in interface AppConnMetaData
public int getLength()
If an Event Handler is attached to the attributeRead event for this attribute, the attribute can return values longer than the defined length.
public int getMetaDataType()
getMetaDataType
in interface AppConnMetaData
public java.lang.String getName()
getName
in interface AppConnMetaData
public java.lang.String getReadVariable()
This variable will be updated with the attribute value when an entity operation performs a ReadFromMappedAttr command.
Returns a 0-length String if the attribute is not mapped.
public java.lang.String getWriteVariable()
The attribute will be updated with the value from this variable when an entity operation performs a WriteToMappedAttr command.
Returns a 0-length String if the attribute is not mapped.
public boolean isReadable()
com.wrq.apptrieve.appconn.AppConnModel#getAttributes
public boolean isWriteable()
com.wrq.apptrieve.appconn.AppConnModel#setAttributes
public boolean terminalAttributesEnabled()
enableTerminalAttributes(true)
com.wrq.apptrieve.appconn.AppConnModel#enableTerminalAttributes
,
com.wrq.apptrieve.appconn.AppConnModel#getAttributes
public java.lang.String toString()
toString
in class java.lang.Object