EPP 0.4.9

com.neulevel.epp.xri
Class EppXriURI

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

public class EppXriURI
extends EppEntity

This EppXriURI class defines URI information associated with XRI authority objects. It implements XRI uriType defined in the XRI authority schema file.

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

Field Summary
static java.lang.String APPEND_AUTHORITY
           
static java.lang.String APPEND_LOCAL
           
static java.lang.String APPEND_NONE
           
static java.lang.String APPEND_PATH
           
static java.lang.String APPEND_QUERY
           
static java.lang.String APPEND_QXRI
           
static java.lang.String DEFAULT_APPEND
          If the "append" attribute is not present, its default value is APPEND_LOCAL.
 
Constructor Summary
EppXriURI()
          Creates an EppXriURI object
EppXriURI(java.lang.String uri)
          Creates an EppXriURI object with a URI
EppXriURI(java.lang.String uri, int priority)
          Creates an EppXriURI object with a URI and a priority value
EppXriURI(java.lang.String uri, int priority, java.lang.String append)
          Creates an EppXriURI object with a URI, a priority value and an append value.
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriURI object.
 java.lang.String getAppend()
          Gets the append attribute value
 int getPriority()
          Gets the priority value for this URI
 java.lang.String getURI()
          Gets the URI
 void setAppend(java.lang.String append)
          Sets the append attribute value
 void setPriority(int priority)
          Sets the priority value for this URI
 void setURI(java.lang.String uri)
          Sets the URI
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriURI 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

APPEND_LOCAL

public static final java.lang.String APPEND_LOCAL
See Also:
Constant Field Values

APPEND_AUTHORITY

public static final java.lang.String APPEND_AUTHORITY
See Also:
Constant Field Values

APPEND_PATH

public static final java.lang.String APPEND_PATH
See Also:
Constant Field Values

APPEND_QUERY

public static final java.lang.String APPEND_QUERY
See Also:
Constant Field Values

APPEND_QXRI

public static final java.lang.String APPEND_QXRI
See Also:
Constant Field Values

APPEND_NONE

public static final java.lang.String APPEND_NONE
See Also:
Constant Field Values

DEFAULT_APPEND

public static final java.lang.String DEFAULT_APPEND
If the "append" attribute is not present, its default value is APPEND_LOCAL.

See Also:
Constant Field Values
Constructor Detail

EppXriURI

public EppXriURI()
Creates an EppXriURI object


EppXriURI

public EppXriURI(java.lang.String uri)
Creates an EppXriURI object with a URI


EppXriURI

public EppXriURI(java.lang.String uri,
                 int priority)
Creates an EppXriURI object with a URI and a priority value


EppXriURI

public EppXriURI(java.lang.String uri,
                 int priority,
                 java.lang.String append)
Creates an EppXriURI object with a URI, a priority value and an append value.

Method Detail

getURI

public java.lang.String getURI()
Gets the URI


setURI

public void setURI(java.lang.String uri)
Sets the URI


getPriority

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


setPriority

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


getAppend

public java.lang.String getAppend()
Gets the append attribute value


setAppend

public void setAppend(java.lang.String append)
Sets the append attribute value


toXML

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

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

fromXML

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

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