EPP 0.4.9

com.neulevel.epp.xri
Class EppXriRef

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

public class EppXriRef
extends EppEntity

This EppXriRef class defines Ref information associated with XRI authority objects. It implements XRI refAddType and refInfType defined in the XRI authority schema file.

Version:
$Revision: 1.4 $ $Date: 2008/04/17 04:28:05 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppXriRef()
          Creates an EppXriRef object
EppXriRef(java.lang.String ref)
          Creates an EppXriRef object with a Ref
EppXriRef(java.lang.String ref, int priority)
          Creates an EppXriRef object with a Ref and a priority value
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriRef object.
 int getPriority()
          Gets the priority value for this Ref
 java.lang.String getRef()
          Gets the XRI string of the Ref
 void setPriority(int priority)
          Sets the priority value for this Ref
 void setRef(java.lang.String ref)
          Sets the XRI string of the Ref
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriRef 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

EppXriRef

public EppXriRef()
Creates an EppXriRef object


EppXriRef

public EppXriRef(java.lang.String ref)
Creates an EppXriRef object with a Ref


EppXriRef

public EppXriRef(java.lang.String ref,
                 int priority)
Creates an EppXriRef object with a Ref and a priority value

Method Detail

getPriority

public int getPriority()
Gets the priority value for this Ref


setPriority

public void setPriority(int priority)
Sets the priority value for this Ref


getRef

public java.lang.String getRef()
Gets the XRI string of the Ref


setRef

public void setRef(java.lang.String ref)
Sets the XRI string of the Ref


toXML

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

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

fromXML

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

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