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).


Variable Index

 o PrecedingWhitespace
 o Value

Constructor Index

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

Method Index

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

Variables

 o PrecedingWhitespace
 protected String PrecedingWhitespace
 o Value
 protected String Value

Constructors

 o xg_Value
 public xg_Value()
Default constructor.

 o xg_Value
 public xg_Value(String InputValue)
Construct a value with a value!

Parameters:
InputValue - The actual value

Methods

 o 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
 o getPrecedingWhitespace
 public String getPrecedingWhitespace()
Get the value of the preceding whitespace.

Returns:
String value or null
 o getValue
 public String getValue()
Get the actual value.

Returns:
The actual value
 o setPrecedingWhitespace
 public void setPrecedingWhitespace(String InputPrecedingWhitespace)
Set the value of the preceding whitespace.

Parameters:
InputPrecedingWhitespace - Value of the preceding whitespace
 o setValue
 public void setValue(String InputValue)
Set the actual value.

Parameters:
InputValue - The actual value
 o 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