EPP 0.4.9

com.neulevel.epp.core
Class EppContactDisclose

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

public class EppContactDisclose
extends EppEntity

This EppContactDisclose class implements EPP Contact DiscloseType for recording contact data privacy information.

The privacy information contains the following 9 fields:

A EppContactDisclose object contains a set of boolean flags for indicating if one of the above 9 fields needs included in an EPP Contact DiscloseType tag.

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

Field Summary
static int TAG_ADDR_INT
          Constant for changing the setting of the boolean flag for the "addr" tag in the "int" form
static int TAG_ADDR_LOC
          Constant for changing the setting of the boolean flag for the "addr" tag in the "loc" form
static int TAG_EMAIL
          Constant for changing the setting of the boolean flag for the "email" tag
static int TAG_FAX
          Constant for changing the setting of the boolean flag for the "fax" tag
static int TAG_NAME_INT
          Constant for changing the setting of the boolean flag for the "name" tag in the "int" form
static int TAG_NAME_LOC
          Constant for changing the setting of the boolean flag for the "name" tag in the "loc" form.
static int TAG_ORG_INT
          Constant for changing the setting of the boolean flag for the "org" tag in the "int" form
static int TAG_ORG_LOC
          Constant for changing the setting of the boolean flag for the "org" tag in the "loc" form
static int TAG_VOICE
          Constant for changing the setting of the boolean flag for the "voice" tag
 
Constructor Summary
EppContactDisclose()
          Creates an EppContactDisclose object, with all tag flags set to false and the disclose flag set to true
EppContactDisclose(boolean tag_flag)
          Creates an EppContactDisclose object, with all tag flags set to the value specified, and the disclose flag set to true
EppContactDisclose(boolean disclose_flag, boolean tag_flag)
          Creates an EppContactDisclose object, with all tag flags set and the disclose flag set to values specified
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppContactDisclose object.
 boolean get(int tag)
          Gets the flag for including a specific privacy tag in the EPP Contcat DiscloseType tag
 boolean getDiscloseFlag()
          Gets the disclose flag
 void set(int tag, boolean flag)
          Sets the flag for including a specific privacy tag in the EPP Contcat DiscloseType tag
 void setDiscloseFlag(boolean disclose_flag)
          Sets the disclose flag
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppContactDisclose 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

TAG_NAME_INT

public static final int TAG_NAME_INT
Constant for changing the setting of the boolean flag for the "name" tag in the "int" form

See Also:
Constant Field Values

TAG_NAME_LOC

public static final int TAG_NAME_LOC
Constant for changing the setting of the boolean flag for the "name" tag in the "loc" form.

See Also:
Constant Field Values

TAG_ORG_INT

public static final int TAG_ORG_INT
Constant for changing the setting of the boolean flag for the "org" tag in the "int" form

See Also:
Constant Field Values

TAG_ORG_LOC

public static final int TAG_ORG_LOC
Constant for changing the setting of the boolean flag for the "org" tag in the "loc" form

See Also:
Constant Field Values

TAG_ADDR_INT

public static final int TAG_ADDR_INT
Constant for changing the setting of the boolean flag for the "addr" tag in the "int" form

See Also:
Constant Field Values

TAG_ADDR_LOC

public static final int TAG_ADDR_LOC
Constant for changing the setting of the boolean flag for the "addr" tag in the "loc" form

See Also:
Constant Field Values

TAG_VOICE

public static final int TAG_VOICE
Constant for changing the setting of the boolean flag for the "voice" tag

See Also:
Constant Field Values

TAG_FAX

public static final int TAG_FAX
Constant for changing the setting of the boolean flag for the "fax" tag

See Also:
Constant Field Values

TAG_EMAIL

public static final int TAG_EMAIL
Constant for changing the setting of the boolean flag for the "email" tag

See Also:
Constant Field Values
Constructor Detail

EppContactDisclose

public EppContactDisclose()
Creates an EppContactDisclose object, with all tag flags set to false and the disclose flag set to true


EppContactDisclose

public EppContactDisclose(boolean tag_flag)
Creates an EppContactDisclose object, with all tag flags set to the value specified, and the disclose flag set to true


EppContactDisclose

public EppContactDisclose(boolean disclose_flag,
                          boolean tag_flag)
Creates an EppContactDisclose object, with all tag flags set and the disclose flag set to values specified

Method Detail

setDiscloseFlag

public void setDiscloseFlag(boolean disclose_flag)
Sets the disclose flag


getDiscloseFlag

public boolean getDiscloseFlag()
Gets the disclose flag


set

public void set(int tag,
                boolean flag)
Sets the flag for including a specific privacy tag in the EPP Contcat DiscloseType tag

Parameters:
tag - one of the 9 tags defined in this class:
  • TAG_NAME_INT
  • TAG_NAME_LOC
  • TAG_ORG_INT
  • TAG_ORG_LOC
  • TAG_ADDR_INT
  • TAG_ADDR_LOC
  • TAG_VOICE
  • TAG_FAX
flag - true if the tag is needed to be included

get

public boolean get(int tag)
Gets the flag for including a specific privacy tag in the EPP Contcat DiscloseType tag

Parameters:
tag - one of the 9 tags defined in this class:
  • TAG_NAME_INT
  • TAG_NAME_LOC
  • TAG_ORG_INT
  • TAG_ORG_LOC
  • TAG_ADDR_INT
  • TAG_ADDR_LOC
  • TAG_VOICE
  • TAG_FAX
  • TAG_EMAIL
Returns:
true if the tag is needed to be included

toXML

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

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

fromXML

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

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