XMLIntRef is a type converter for integer data with write access. More...

Public Member Functions | |
| XMLIntRef (final XMLNode node, final String attrName) | |
| XMLIntRef (final XMLPos pos, final String attrName) | |
| XMLIntRef (final XMLNode node, final String attrName, int def) | |
| XMLIntRef (final XMLPos pos, final String attrName, int def) | |
| int | intValue () |
| void | assign (int value) |
Protected Attributes | |
| final XMLNode | _node |
| final String | _attrName |
XMLIntRef is a type converter for integer data with write access.
Definition at line 45 of file XMLIntRef.java.
| de.mfuchs.xmlstorage.XMLIntRef.XMLIntRef | ( | final XMLNode | node, |
| final String | attrName | ||
| ) |
Definition at line 47 of file XMLIntRef.java.
{
this(node, attrName, 0);
}
| de.mfuchs.xmlstorage.XMLIntRef.XMLIntRef | ( | final XMLPos | pos, |
| final String | attrName | ||
| ) |
Definition at line 52 of file XMLIntRef.java.
References de.mfuchs.xmlstorage.XMLPos.cur().
{
this(pos.cur(), attrName, 0);
}

| de.mfuchs.xmlstorage.XMLIntRef.XMLIntRef | ( | final XMLNode | node, |
| final String | attrName, | ||
| int | def | ||
| ) |
Definition at line 57 of file XMLIntRef.java.
References de.mfuchs.xmlstorage.XMLIntRef._attrName, de.mfuchs.xmlstorage.XMLIntRef._node, de.mfuchs.xmlstorage.XMLIntRef.assign(), and de.mfuchs.xmlstorage.XMLNode.get().
{
_node = node;
_attrName = attrName;
if (node != null)
if (node.get(attrName).length() == 0)
assign(def);
}

| de.mfuchs.xmlstorage.XMLIntRef.XMLIntRef | ( | final XMLPos | pos, |
| final String | attrName, | ||
| int | def | ||
| ) |
Definition at line 67 of file XMLIntRef.java.
References de.mfuchs.xmlstorage.XMLPos.cur().
{
this(pos.cur(), attrName, def);
}

| void de.mfuchs.xmlstorage.XMLIntRef.assign | ( | int | value ) |
Definition at line 80 of file XMLIntRef.java.
References de.mfuchs.xmlstorage.XMLIntRef._attrName, de.mfuchs.xmlstorage.XMLIntRef._node, and de.mfuchs.xmlstorage.XMLNode.put().
Referenced by de.mfuchs.Example3.testWrite(), de.mfuchs.Example2.testWrite(), and de.mfuchs.xmlstorage.XMLIntRef.XMLIntRef().

| int de.mfuchs.xmlstorage.XMLIntRef.intValue | ( | ) |
Definition at line 72 of file XMLIntRef.java.
References de.mfuchs.xmlstorage.XMLIntRef._attrName, de.mfuchs.xmlstorage.XMLIntRef._node, and de.mfuchs.xmlstorage.XMLNode.get().
Referenced by de.mfuchs.XMLTest.test1().

final String de.mfuchs.xmlstorage.XMLIntRef._attrName [protected] |
Definition at line 87 of file XMLIntRef.java.
Referenced by de.mfuchs.xmlstorage.XMLIntRef.assign(), de.mfuchs.xmlstorage.XMLIntRef.intValue(), and de.mfuchs.xmlstorage.XMLIntRef.XMLIntRef().
final XMLNode de.mfuchs.xmlstorage.XMLIntRef._node [protected] |
Definition at line 86 of file XMLIntRef.java.
Referenced by de.mfuchs.xmlstorage.XMLIntRef.assign(), de.mfuchs.xmlstorage.XMLIntRef.intValue(), and de.mfuchs.xmlstorage.XMLIntRef.XMLIntRef().
1.7.2