pl.mbdev.xml
Class XmlObject

java.lang.Object
  extended by pl.mbdev.xml.XmlObject
All Implemented Interfaces:
Xml
Direct Known Subclasses:
AdminCredentials, SqlCredentials

public abstract class XmlObject
extends java.lang.Object
implements Xml

Superclass for objects that are convertible to XML.

 Copyright 2011 Mateusz Bysiek,
     mb@mbdev.pl, http://mbdev.pl/
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
     http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 

Author:
Mateusz Bysiek

Constructor Summary
XmlObject()
           
 
Method Summary
 java.lang.String toString()
           
 XmlTree toXml()
          Converts this object into XML tree.
 java.lang.String toXmlString()
          Converts this object to string representing it in XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlObject

public XmlObject()
Method Detail

toXmlString

public java.lang.String toXmlString()
Converts this object to string representing it in XML.

Returns:
string that is XML compatible

toXml

public XmlTree toXml()
Description copied from interface: Xml
Converts this object into XML tree.

Specified by:
toXml in interface Xml
Returns:
XML representation of the object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object