|
EPP 0.4.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.neulevel.epp.core.EppEntity
com.neulevel.epp.core.EppContactType
public class EppContactType
This EppContactType class implements EPP Contact Type entity.
Currently, only EPP Domain objects have contact types defined:
| Constructor Summary | |
|---|---|
EppContactType(java.lang.String id)
Creates an EppContactType object with the id of
a contact object |
|
EppContactType(java.lang.String id,
java.lang.String type)
Creates an EppContactType object with the id of
a contact object and a type string |
|
| Method Summary | |
|---|---|
static EppEntity |
fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppContactType object. |
static java.util.Vector |
getContactId(java.util.Vector contact,
java.lang.String type)
Gets a sub-list of contact ids, given a list of contact types and a type string |
java.lang.String |
getId()
Gets the id of the contact |
java.lang.String |
getType()
Gets the type of the contact |
void |
setId(java.lang.String id)
Sets the id of the contact |
void |
setType(java.lang.String type)
Sets the type of the contact |
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc,
java.lang.String tag)
Converts the EppContactType 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 |
|---|
public EppContactType(java.lang.String id)
EppContactType object with the id of
a contact object
public EppContactType(java.lang.String id,
java.lang.String type)
EppContactType object with the id of
a contact object and a type string
| Method Detail |
|---|
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getType()
public void setType(java.lang.String type)
public static java.util.Vector getContactId(java.util.Vector contact,
java.lang.String type)
contact - a list of EppContactType objectstype - the type of contacts to be extracted from the list
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
java.lang.String tag)
EppContactType object into an XML element
toXML in class EppEntitydoc - the XML Document objecttag - the tag/element name for the EppContactType
object
Element objectpublic static EppEntity fromXML(org.w3c.dom.Node root)
EppContactType object.
The caller of this method must make sure that the root node is of
the EPP Contact Type type.
root - root node for an EppContactType object
in XML format
EppContactType object, or null if the node
is invalidpublic java.lang.String toString()
toString in class EppEntity
|
EPP 0.4.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||