|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.handlers.statusdatahandler.ServerDef
public class ServerDef
Represents an Xml node with the following format:
<Server IP="" Username="" Password="" />
Field Summary | |
---|---|
java.lang.String |
address
The 'IP' property of the server. |
java.lang.String |
password
The 'Password' property of the element. |
java.lang.String |
username
The 'Username' property of the element. |
Constructor Summary | |
---|---|
ServerDef()
Creates a new instance of ServerDef. |
|
ServerDef(org.w3c.dom.Node node)
Creates a new instance of ServerDef. |
|
ServerDef(java.lang.String nodeRep)
Creates a new instance of ServerDef. |
|
ServerDef(java.lang.String address,
java.lang.String username,
java.lang.String password)
Creates a new instance of ServerDef. |
Method Summary | |
---|---|
private void |
createElementFromNode(org.w3c.dom.Node node)
Creates the ServerDef by supplying its XmlNode represenation. |
java.lang.String |
toString()
Returns the string representation of this object. |
java.lang.String |
toXmlString()
Converts this instance to a valid XML string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String address
public java.lang.String username
public java.lang.String password
Constructor Detail |
---|
public ServerDef(java.lang.String address, java.lang.String username, java.lang.String password)
address
- The 'IP' property of the server.username
- The 'Size' property of the server.password
- The 'Password' property of the server.public ServerDef()
public ServerDef(org.w3c.dom.Node node) throws StatusDefException
node
- The Xml Node representing this element.
StatusDefException
- If the node couldn't be parsed.public ServerDef(java.lang.String nodeRep) throws StatusDefException
nodeRep
- The Xml String representing this element.
StatusDefException
- If the given String couldn't be parsed.Method Detail |
---|
private void createElementFromNode(org.w3c.dom.Node node) throws StatusDefException
node
- The Xml Node representing this element.
StatusDefException
- If the node name is not 'Server' or attributes are missing.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |