    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class xg.xg_Value

    java.lang.Object
       |
       +----xg.xg_Value

public class xg_Value
extends Object

Class xg_Value - Representation of any value within an XML source. All values are Strings, and may be preceded by whitespace (which is recorded as part of the xg_Value).

##

PrecedingWhitespace
Value

##

xg_Value()
  Default constructor.
xg_Value(String)
  Construct a value with a value!

##

getPrecedingWhitespace()
  Get the value of the preceding whitespace.
getValue()
  Get the actual value.
save(Writer)
  Save this value (and its preceding whitespace) as an XML source in InputWriter.
setPrecedingWhitespace(String)
  Set the value of the preceding whitespace.
setValue(String)
  Set the actual value.
toString()
  Return a string representation of the value: the value itself.

##

PrecedingWhitespace

     protected String PrecedingWhitespace

Value

     protected String Value

##

xg_Value

     public xg_Value()

  Default constructor.

xg_Value

     public xg_Value(String InputValue)

  Construct a value with a value!

  Parameters:
    InputValue - The actual value

##

save

     public void save(Writer InputWriter) throws IOException

  Save this value (and its preceding whitespace) as an XML source in InputWriter.

  Parameters:
    InputWriter - The writer to which the XML will be written

getPrecedingWhitespace

     public String getPrecedingWhitespace()

  Get the value of the preceding whitespace.

  Returns:
    String value or null

getValue

     public String getValue()

  Get the actual value.

  Returns:
    The actual value

setPrecedingWhitespace

     public void setPrecedingWhitespace(String InputPrecedingWhitespace)

  Set the value of the preceding whitespace.

  Parameters:
    InputPrecedingWhitespace - Value of the preceding whitespace

setValue

     public void setValue(String InputValue)

  Set the actual value.

  Parameters:
    InputValue - The actual value

toString

     public String toString()

  Return a string representation of the value: the value itself.

  Returns:
    String representing the value
  Overrides:
    toString in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index