EPP 0.4.9

com.neulevel.epp.core
Class EppHostAttribute

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.core.EppHostAttribute

public class EppHostAttribute
extends EppEntity

This EppHostAttribute class implements EPP hostAttrType entity that is used by EppDomain objects.

Version:
$Revision: 1.2 $ $Date: 2006/03/01 01:35:38 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppHostAttribute(java.lang.String hostname)
          Creates an EppHostAttribute object with a host name
EppHostAttribute(java.lang.String hostname, java.util.Vector address)
          Creates an EppHostAttribute object with a host name and a list of EppIpAddress objects
 
Method Summary
 void addIpAddress(EppIpAddress address)
          Adds an ip address to the list of ip addresses associated with the host name
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppHostAttribute object.
 java.lang.String getHostName()
          Gets the host name
 java.util.Vector getIpAddress()
          Gets the list of ip addresses associated with the host name
 void setHostName(java.lang.String hostname)
          Sets the host name
 void setIpAddress(java.util.Vector address)
          Sets the list of ip addresses associated with the host name
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppHostAttribute object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppHostAttribute

public EppHostAttribute(java.lang.String hostname)
Creates an EppHostAttribute object with a host name


EppHostAttribute

public EppHostAttribute(java.lang.String hostname,
                        java.util.Vector address)
Creates an EppHostAttribute object with a host name and a list of EppIpAddress objects

Method Detail

getHostName

public java.lang.String getHostName()
Gets the host name


setHostName

public void setHostName(java.lang.String hostname)
Sets the host name


getIpAddress

public java.util.Vector getIpAddress()
Gets the list of ip addresses associated with the host name


setIpAddress

public void setIpAddress(java.util.Vector address)
Sets the list of ip addresses associated with the host name


addIpAddress

public void addIpAddress(EppIpAddress address)
Adds an ip address to the list of ip addresses associated with the host name


toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppHostAttribute object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppHostAttribute object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppHostAttribute object. The caller of this method must make sure that the root node is of the EPP Contact Type type.

Parameters:
root - root node for an EppHostAttribute object in XML format
Returns:
an EppHostAttribute object, or null if the node is invalid

toString

public java.lang.String toString()
Specified by:
toString in class EppEntity

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.