| org.griphyn.vdl.classes.VDL org.griphyn.vdl.classes.Meta
Meta | public class Meta extends VDL implements Serializable(Code) | | This class implements nothing for meta data.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Constructor Summary | |
public | Meta() Default ctor. | public | Meta(String content) Ctor to initialize the content while constructing the class. |
Method Summary | |
public void | addContent(String content) Appends text to the current internal state. | public String | getContent() Gets the content state of this object. | public void | setContent(String content) Overwrites the internal state with new content. | public String | toString() Converts the active state into something meant for human consumption. | public void | toString(Writer stream) Prints the current content onto the stream. | public void | toXML(Writer stream, String indent, String namespace) Dump the state of the current element as XML output. |
Meta | public Meta()(Code) | | Default ctor. Calls the parent initialization.
|
Meta | public Meta(String content)(Code) | | Ctor to initialize the content while constructing the class.
This is a convenience ctor.
|
addContent | public void addContent(String content)(Code) | | Appends text to the current internal state. The text may contain
other elements which are not quoted or changed in any way.
Parameters: content - is the new text to append to the current content. See Also: Meta.getContent() |
getContent | public String getContent()(Code) | | Gets the content state of this object. The text may contain
other elements which are not quoted or changed in any way.
The current state of content. The text may be null. See Also: Meta.setContent(String) |
setContent | public void setContent(String content)(Code) | | Overwrites the internal state with new content. The supplied content
will become effectively the active state of the object. Usually, this
method will be called during SAX assembly of the instance structure.
Parameters: content - is the new state to register. See Also: Meta.getContent() |
toString | public String toString()(Code) | | Converts the active state into something meant for human consumption.
This method overwrites the base class default as it can be more
efficiently implemented.
There is not textual representation of metadata in VDLt. |
toString | public void toString(Writer stream) throws IOException(Code) | | Prints the current content onto the stream. This is a no-op, because
there is not textual representation of metadata in VDLt.
Parameters: stream - is a stream opened and ready for writing. This can alsobe a string stream for efficient output. throws: IOException - if something happens to the stream. |
toXML | public void toXML(Writer stream, String indent, String namespace) throws IOException(Code) | | Dump the state of the current element as XML output. The stream
interface should be able to handle large output efficiently, if you
use a buffered writer.
Parameters: stream - is a stream opened and ready for writing. This can alsobe a string stream for efficient output. Parameters: indent - is a String of spaces used for prettyprinting. The initial amount of spaces should be an empty string.The parameter is used internally for the recursive traversal. Parameters: namespace - is the XML schema namespace prefix. If neitherempty nor null, each element will be prefixed with this prefix,and the root element will map the XML namespace. exception: IOException - if something fishy happens to the stream. |
|
|