Public Member Functions | Protected Attributes

de.mfuchs.xmlstorage.XMLStringRef Class Reference

XMLStringRef is used to provide write access to XML attribute values. More...

Collaboration diagram for de.mfuchs.xmlstorage.XMLStringRef:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLStringRef (final XMLNode node, final String attrName)
 XMLStringRef (final XMLPos pos, final String attrName)
 XMLStringRef (final XMLNode node, final String attrName, final String def)
 XMLStringRef (final XMLPos pos, final String attrName, final String def)
String toString ()
void assign (final String value)

Protected Attributes

final XMLNode _node
final String _attrName

Detailed Description

XMLStringRef is used to provide write access to XML attribute values.

Definition at line 45 of file XMLStringRef.java.


Constructor & Destructor Documentation

de.mfuchs.xmlstorage.XMLStringRef.XMLStringRef ( final XMLNode  node,
final String  attrName 
)

Definition at line 47 of file XMLStringRef.java.

    {
        this(node, attrName, "");
    }
de.mfuchs.xmlstorage.XMLStringRef.XMLStringRef ( final XMLPos  pos,
final String  attrName 
)

Definition at line 52 of file XMLStringRef.java.

References de.mfuchs.xmlstorage.XMLPos.cur().

    {
        this(pos.cur(), attrName, "");
    }

Here is the call graph for this function:

de.mfuchs.xmlstorage.XMLStringRef.XMLStringRef ( final XMLNode  node,
final String  attrName,
final String  def 
)

Definition at line 57 of file XMLStringRef.java.

References de.mfuchs.xmlstorage.XMLStringRef._attrName, de.mfuchs.xmlstorage.XMLStringRef._node, de.mfuchs.xmlstorage.XMLStringRef.assign(), and de.mfuchs.xmlstorage.XMLNode.get().

    {
        _node = node;
        _attrName = attrName;

        if (node != null)
            if (node.get(attrName).length() == 0)
                assign(def);
    }

Here is the call graph for this function:

de.mfuchs.xmlstorage.XMLStringRef.XMLStringRef ( final XMLPos  pos,
final String  attrName,
final String  def 
)

Definition at line 67 of file XMLStringRef.java.

References de.mfuchs.xmlstorage.XMLPos.cur().

    {
        this(pos.cur(), attrName, def);
    }

Here is the call graph for this function:


Member Function Documentation

void de.mfuchs.xmlstorage.XMLStringRef.assign ( final String  value )
String de.mfuchs.xmlstorage.XMLStringRef.toString (  )

Definition at line 72 of file XMLStringRef.java.

References de.mfuchs.xmlstorage.XMLStringRef._attrName, de.mfuchs.xmlstorage.XMLStringRef._node, and de.mfuchs.xmlstorage.XMLNode.get().

    {
        if (_node != null)
            return _node.get(_attrName);
        else
            return "";
    }

Here is the call graph for this function:


Member Data Documentation


The documentation for this class was generated from the following file: