EPP 0.4.9

com.neulevel.epp.xri
Class EppXriNumberAttribute

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.xri.EppXriNumberAttribute

public class EppXriNumberAttribute
extends EppEntity

This EppXriNumberAttribute class defines i-numbers information associated with XRI authority objects. It implements XRI inumberType defined in the XRI authority schema file.

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

Field Summary
protected static int DEFAULT_PRIORITY
          Default priority value - 10
 
Constructor Summary
EppXriNumberAttribute()
          Creates an EppXriNumberAttribute object
EppXriNumberAttribute(java.lang.String inumber, int priority)
          Creates an EppXriNumberAttribute object with an identifier
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriNumberAttribute object.
 java.lang.String getINumber()
          Gets the i-number
 int getPriority()
          Gets the priority value for this i-number
 void setINumber(java.lang.String inumber)
          Sets the i-number
 void setPriority(int priority)
          Sets the priority value for this i-number
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriNumberAttribute 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
 

Field Detail

DEFAULT_PRIORITY

protected static final int DEFAULT_PRIORITY
Default priority value - 10

See Also:
Constant Field Values
Constructor Detail

EppXriNumberAttribute

public EppXriNumberAttribute()
Creates an EppXriNumberAttribute object


EppXriNumberAttribute

public EppXriNumberAttribute(java.lang.String inumber,
                             int priority)
Creates an EppXriNumberAttribute object with an identifier

Method Detail

getINumber

public java.lang.String getINumber()
Gets the i-number


setINumber

public void setINumber(java.lang.String inumber)
Sets the i-number


getPriority

public int getPriority()
Gets the priority value for this i-number


setPriority

public void setPriority(int priority)
Sets the priority value for this i-number


toXML

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

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

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppXriNumberAttribute object. The caller of this method must make sure that the root node is of the EPP XRI xriAU:inumberType.

Parameters:
root - root node for an EppXriNumberAttribute object in XML format
Returns:
an EppXriNumberAttribute 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.