org.openxri.xml
Class SEPMediaType
java.lang.Object
org.openxri.xml.SEPElement
org.openxri.xml.SEPMediaType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class SEPMediaType
- extends SEPElement
- See Also:
- Serialized Form
Fields inherited from class org.openxri.xml.SEPElement |
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, soLog |
Constructor Summary |
SEPMediaType()
Creates a default EppXriServiceEndpointMediaType object |
SEPMediaType(java.lang.String mediaType,
java.lang.String match,
java.lang.Boolean select)
Creates an EppXriServiceEndpointMediaType object with the specified fields |
Method Summary |
java.lang.Object |
clone()
|
static SEPMediaType |
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 org.openxri.xml.SEPElement |
equals, getMatch, getSelect, getValue, hashCode, setFromXML, setMatch, setSelect, setSelect, setSelect, setValue, toString, toXML |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SEPMediaType
public SEPMediaType()
- Creates a default
EppXriServiceEndpointMediaType
object
SEPMediaType
public SEPMediaType(java.lang.String mediaType,
java.lang.String match,
java.lang.Boolean select)
- Creates an
EppXriServiceEndpointMediaType
object with the specified fields
fromXML
public static SEPMediaType 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()
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
- Overrides:
clone
in class SEPElement
Copyright © 2005-2012. All Rights Reserved.