EPP 0.4.9

com.neulevel.epp.xri
Class EppXriServiceEndpointMediaType

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

public class EppXriServiceEndpointMediaType
extends EppXriServiceEndpointRule

This EppXriServiceEndpointMediaType class encapsulates the EPP XRI Authority ServiceEndpoint MediaType as defined in the XRI Authority XML Schema type sepMediaTypeType.

Version:
$Revision: 1.1 $ $Date: 2006/03/12 02:01:30 $
Author:
William Tan william.tan@neustar.biz

Field Summary
 
Fields inherited from class com.neulevel.epp.xri.EppXriServiceEndpointRule
DEFAULT_MATCH_ATTR, DEFAULT_SELECT_ATTR, DEFAULT_SELECT_ATTR_BOOL, MATCH_ATTR_ANY, MATCH_ATTR_CONTENT, MATCH_ATTR_DEFAULT, MATCH_ATTR_NON_NULL, MATCH_ATTR_NONE, MATCH_ATTR_NULL, SELECT_ATTR_FALSE, SELECT_ATTR_TRUE
 
Constructor Summary
EppXriServiceEndpointMediaType()
          Creates a default EppXriServiceEndpointMediaType object
EppXriServiceEndpointMediaType(java.lang.String mediaType, java.lang.String match, java.lang.Boolean select)
          Creates an EppXriServiceEndpointMediaType object with the specified fields
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriServiceEndpointMediaType object.
 java.lang.String getMediaType()
          Gets the value of this MediaType rule.
 void setMediaType(java.lang.String mediaType)
          Sets the value of this MediaType rule.
 java.lang.String toString()
           
 
Methods inherited from class com.neulevel.epp.xri.EppXriServiceEndpointRule
getMatch, getSelect, getValue, setFromXML, setMatch, setSelect, setSelect, setValue, toXML
 
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

EppXriServiceEndpointMediaType

public EppXriServiceEndpointMediaType()
Creates a default EppXriServiceEndpointMediaType object


EppXriServiceEndpointMediaType

public EppXriServiceEndpointMediaType(java.lang.String mediaType,
                                      java.lang.String match,
                                      java.lang.Boolean select)
Creates an EppXriServiceEndpointMediaType object with the specified fields

Method Detail

fromXML

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

Parameters:
root - root node for an EppXriServiceEndpoint object in XML format
Returns:
an EppXriServiceEndpointMediaType object, or null if the node is invalid

getMediaType

public java.lang.String getMediaType()
Gets the value of this MediaType rule. This is an alias for the superclass' getValue method.


setMediaType

public void setMediaType(java.lang.String mediaType)
Sets the value of this MediaType rule. This is an alias for the superclass' setValue method.


toString

public java.lang.String toString()
Specified by:
toString in class EppEntity

EPP 0.4.9

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