The entry object is used by AssemblyLines and EventHandlers. The entry
object is a Java object that holds attributes and properties. Attributes in turn
contain any number of values. Properties contain a single value.
For a complete list of available methods, including parameters and return
values, see here. This
is some of the commonly used methods:
Function |
Description |
addAttributeValue (name, value) |
Adds a value to attribute name. If there
is no attribute called name then a new attribute is created. |
clone ( entry ) |
Return a clone entry from entry |
getAttribute (name) |
Return the attribute named name |
getAttributeNames() |
Returns an array of attribute names in this
object |
getObject (name) |
An attribute may have more than one value. This
function returns the first value as an object. Some values have a string
representation and others dont. This function returns the value as is with
no conversions. |
getOp() |
Returns the operation code for this entry as a
char.
g ---> Generic (e.g. not specified)
a ---> Add
m ---> Modify
d ---> Delete
|
getOperation() |
Returns the operation code for this entry as a
string. This is useful when programming in JavaScript. Possible values are
"generic", "add", "modify" and
"delete".
|
getProperty (name) |
Return the value for property name |
getString (name) |
An attribute may have more than one value. This
function returns the first value as a string. |
merge ( entry ) |
Merge values from entry into this object |
removeAttribute (name) |
Removes attribute name from this object |
removeAllAttributes() |
Removes all attributes from this object |
setAttribute (name, value) |
Set the attribute value for name to value.
Note: Using null as value will remove the
attribute (as will remeoveAttribute(). Clearing the attribute is
done by getAttribute("attributeName").clear() |
setOp ( code ) |
Sets the operation code for this object. See
getOp(). |
setProperty (name, value) |
Set the property value |
size() |
Returns the number of attributes in this entry
object |