EPP 0.4.9

com.neulevel.epp.xri
Class EppXriTrustee

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

public class EppXriTrustee
extends EppEntity

This EppXriTrustee class defines trustee information associated with XRI authority objects. It implements XRI trusteeType and trusteeInfType 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

Constructor Summary
EppXriTrustee()
          Creates an EppXriTrustee object
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriTrustee object.
 java.lang.String getAuthorityId()
          Gets the identifier of the XRI authority as a trustee
 java.lang.String getINumber()
          Gets the i-number of the XRI i-number as a trustee
 boolean isExternal()
          Returns true if this trustee is an external one
 void setAuthorityId(java.lang.String authId)
          Sets the identifier of an XRI authority as an internal trutee
 void setAuthorityId(java.lang.String authId, boolean external)
          Sets the identifier of an XRI authority as a trustee, either external or internal
 void setExternal(boolean flag)
          Sets the boolean flag for indicating if this trustee is an external one or not
 void setINumber(java.lang.String inumber)
          Sets the i-number of an XRI i-number as an internal trutee
 void setINumber(java.lang.String inumber, boolean external)
          Sets the i-number of an XRI i-number as a trustee, either external or internal
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriTrustee 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

EppXriTrustee

public EppXriTrustee()
Creates an EppXriTrustee object

Method Detail

isExternal

public boolean isExternal()
Returns true if this trustee is an external one


setExternal

public void setExternal(boolean flag)
Sets the boolean flag for indicating if this trustee is an external one or not


getAuthorityId

public java.lang.String getAuthorityId()
Gets the identifier of the XRI authority as a trustee

Returns:
a string representing the XRI authority identifier, or null if the trustee is not an XRI authority object.

getINumber

public java.lang.String getINumber()
Gets the i-number of the XRI i-number as a trustee

Returns:
a string representing the XRI i-number, or null if the trustee is not an XRI i-number object.

setAuthorityId

public void setAuthorityId(java.lang.String authId)
Sets the identifier of an XRI authority as an internal trutee

Parameters:
authId - identifier of the XRI authority object

setAuthorityId

public void setAuthorityId(java.lang.String authId,
                           boolean external)
Sets the identifier of an XRI authority as a trustee, either external or internal

Parameters:
authId - identifier of the XRI authority object
external - flag indicating if the trustee is external or internal

setINumber

public void setINumber(java.lang.String inumber)
Sets the i-number of an XRI i-number as an internal trutee

Parameters:
inumber - i-number of the XRI i-number object

setINumber

public void setINumber(java.lang.String inumber,
                       boolean external)
Sets the i-number of an XRI i-number as a trustee, either external or internal

Parameters:
inumber - i-number of the XRI i-number object
external - flag indicating if the trustee is external or internal

toXML

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

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

fromXML

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

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