EPP 0.4.9

com.neulevel.epp.xri
Class EppXriServiceEndpointRule

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.xri.EppXriServiceEndpointRule
Direct Known Subclasses:
EppXriServiceEndpointMediaType, EppXriServiceEndpointPath, EppXriServiceEndpointType

public abstract class EppXriServiceEndpointRule
extends EppEntity

This EppXriServiceEndpointRule abstract class encapsulates the common EPP XRI Authority ServiceEndpoint rules (Type, MediaType and Path).

Version:
$Revision: 1.6 $ $Date: 2006/04/03 20:36:44 $
Author:
William Tan william.tan@neustar.biz

Field Summary
static java.lang.String DEFAULT_MATCH_ATTR
          Default value of the match attribute if it was omitted or its value is null.
static java.lang.String DEFAULT_SELECT_ATTR
          Default value of the select attribute is FALSE if it was omitted in the parent element.
static boolean DEFAULT_SELECT_ATTR_BOOL
           
static java.lang.String MATCH_ATTR_ANY
           
static java.lang.String MATCH_ATTR_CONTENT
           
static java.lang.String MATCH_ATTR_DEFAULT
           
static java.lang.String MATCH_ATTR_NON_NULL
           
static java.lang.String MATCH_ATTR_NONE
           
static java.lang.String MATCH_ATTR_NULL
           
static java.lang.String SELECT_ATTR_FALSE
           
static java.lang.String SELECT_ATTR_TRUE
           
 
Constructor Summary
EppXriServiceEndpointRule()
          Creates a default EppXriServiceEndpointRule object
EppXriServiceEndpointRule(java.lang.String value, java.lang.String match, java.lang.Boolean select)
          Creates a default EppXriServiceEndpointRule object with the given value
 
Method Summary
 java.lang.String getMatch()
          Gets the "match" attribute of this Type/MediaType/Path rule
 boolean getSelect()
          Gets the "select" attribute of this Type/MediaType/Path rule
 java.lang.String getValue()
          Gets the value of this Type/MediaType/Path rule
 void setFromXML(org.w3c.dom.Node root)
          Sets the members of this EppXriServiceEndpointRule object from the given XML element.
 void setMatch(java.lang.String match)
          Sets the "match" attribute of this Type/MediaType/Path rule
 void setSelect(boolean select)
          Sets the "select" attribute of this Type/MediaType/Path rule
 void setSelect(java.lang.String select)
          Sets the "select" attribute of this Type/MediaType/Path rule.
 void setValue(java.lang.String value)
          Sets the value of this Type/MediaType/Path rule
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriServiceEndpointRule object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
fromXML, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MATCH_ATTR_DEFAULT

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

MATCH_ATTR_CONTENT

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

MATCH_ATTR_ANY

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

MATCH_ATTR_NON_NULL

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

MATCH_ATTR_NULL

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

MATCH_ATTR_NONE

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

DEFAULT_MATCH_ATTR

public static final java.lang.String DEFAULT_MATCH_ATTR
Default value of the match attribute if it was omitted or its value is null. This is an alias for MATCH_ATTR_CONTENT as defined in xri-resolution-v2.0-wd-10-ed-08.

See Also:
Constant Field Values

SELECT_ATTR_TRUE

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

SELECT_ATTR_FALSE

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

DEFAULT_SELECT_ATTR

public static final java.lang.String DEFAULT_SELECT_ATTR
Default value of the select attribute is FALSE if it was omitted in the parent element.

See Also:
Constant Field Values

DEFAULT_SELECT_ATTR_BOOL

public static final boolean DEFAULT_SELECT_ATTR_BOOL
See Also:
Constant Field Values
Constructor Detail

EppXriServiceEndpointRule

public EppXriServiceEndpointRule()
Creates a default EppXriServiceEndpointRule object


EppXriServiceEndpointRule

public EppXriServiceEndpointRule(java.lang.String value,
                                 java.lang.String match,
                                 java.lang.Boolean select)
Creates a default EppXriServiceEndpointRule object with the given value

Method Detail

getMatch

public java.lang.String getMatch()
Gets the "match" attribute of this Type/MediaType/Path rule


setMatch

public void setMatch(java.lang.String match)
Sets the "match" attribute of this Type/MediaType/Path rule


getSelect

public boolean getSelect()
Gets the "select" attribute of this Type/MediaType/Path rule


setSelect

public void setSelect(boolean select)
Sets the "select" attribute of this Type/MediaType/Path rule


setSelect

public void setSelect(java.lang.String select)
Sets the "select" attribute of this Type/MediaType/Path rule. Interprets "true" (any case) or "1" as TRUE. Any other value is considered FALSE.


getValue

public java.lang.String getValue()
Gets the value of this Type/MediaType/Path rule


setValue

public void setValue(java.lang.String value)
Sets the value of this Type/MediaType/Path rule


toXML

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

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

setFromXML

public void setFromXML(org.w3c.dom.Node root)
Sets the members of this EppXriServiceEndpointRule object from the given XML element. The caller of this method must make sure that the root node is of the EPP XRI sepRuleType.

Parameters:
root - root node for an EppXriServiceEndpointRule object in XML format

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.