com.cysols.iodef.element
Class Contact

java.lang.Object
  extended by com.cysols.iodef.IElement
      extended by com.cysols.iodef.element.Contact

public class Contact
extends IElement

This class represents to Contact element.

Author:
cysol

Field Summary
 
Fields inherited from class com.cysols.iodef.IElement
attributeList, elementcreator, elementsMap, myName
 
Method Summary
 void addContanct(Contact con)
          Adds the specified contact element
 void addDescriptionValue(String descr)
          Adds the specified desciption value.
 void addEmailValue(String value)
          Adds the specified vlaue with the value of Email node.
 void addRegistryHandleValue(String value)
          Adds the RegistryHandle node with the specified value.
 void addRegistryHandleValue(String value, String type)
          Adds the RegistryHandle node with the specified values.
 void addTelephoneValue(String value)
          Adds the specified vlaue with the value of Telephone node.
 String getContactRole()
          Returns the contact role.
 Contact[] getContacts()
          Returns the array of Contact value.
 String getContactType()
          Returns the contact type.
 String[] getDescriptionValues()
          Returns the array of description value.
 String[] getEmailValues()
          Returns the array of value of Email node, reutrns null if they doesn't exist.
 String getFaxValue()
          Returns the value of Fax node, reutrns null if it doesn't exist.
 String getNameValue()
          Returns the name value from Name element.
 String getPostalAddressValue()
          Returns the value of PostalAddress node.
 String[] getRegistryHandleValues()
          Returns the array of value of RegistryHandle node.
 String getRestriction()
          Returns the restriction value.
 String[] getTelephoneValues()
          Returns the array of value of Telephone node, reutrns null if they doesn't exist.
 String getTimezoneValue()
          Returns the value of Timezone node, reutrns null if it doesn't exist.
 void setContactRole(String value)
          Sets the contact role.
 void setContactType(String value)
          Sets the contact type
 void setFaxValue(String value)
          Sets the specified value with Fax node.
 void setNameValue(String value)
          Creates a name element with the specified value.
 void setNameValue(String value, String preserve, String transform, String lang)
          Creates a name element with the specified values.
 void setPostalAddressValue(String value)
          Sets the PostalAddress node with the specified value.
 void setPostalAddressValue(String value, String lang)
          Sets the PostalAddress node with the specified value.
 void setRestriction(String value)
          Sets the specified restriction value.
 void setTimezoneValue(String value)
          Sets the specified value with Timezone node.
 
Methods inherited from class com.cysols.iodef.IElement
addElement, addElementValue, createAttribute, createDomElement, createrElement, getAttribute, getAttributeNames, getAttributes, getAttributeValue, getAttributeValue, getAttributeValueINS, getAttributeValuesINS, getElementList, getElementName, getElements, getElements, getElements, getElementsINS, getElementsValue, getElementValue, getNameSpace, getValue, removeAttribute, removeAttribute, removeElements, setAttribute, setAttribute, setAttribute, setAttributeINS, setElementINS, setElementsINS, setElementValue, setNameSpace, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setNameValue

public void setNameValue(String value)
Creates a name element with the specified value.

Parameters:
value - - name value

setNameValue

public void setNameValue(String value,
                         String preserve,
                         String transform,
                         String lang)
Creates a name element with the specified values.

Parameters:
value - name value
preserve -
transform -
lang -

getNameValue

public String getNameValue()
Returns the name value from Name element.

Returns:
name value.

addDescriptionValue

public void addDescriptionValue(String descr)
Adds the specified desciption value.

Parameters:
descr - - desciption value

getDescriptionValues

public String[] getDescriptionValues()
Returns the array of description value. reutrns null if they doesn't exist.

Returns:
the array of description value.

addRegistryHandleValue

public void addRegistryHandleValue(String value)
Adds the RegistryHandle node with the specified value.

Parameters:
value - value of RegistryHandle node

addRegistryHandleValue

public void addRegistryHandleValue(String value,
                                   String type)
Adds the RegistryHandle node with the specified values.

Parameters:
value - value of RegistryHandle node
type - the dtype of RegistryHandle node

getRegistryHandleValues

public String[] getRegistryHandleValues()
Returns the array of value of RegistryHandle node. reutrns null if description doesn't exist.

Returns:
the array of value of RegistryHandle node

setPostalAddressValue

public void setPostalAddressValue(String value)
Sets the PostalAddress node with the specified value.

Parameters:
value - the value of PostalAddress node

setPostalAddressValue

public void setPostalAddressValue(String value,
                                  String lang)
Sets the PostalAddress node with the specified value.

Parameters:
value - the value of PostalAddress node
lang - the lang attribute of PostalAddress node

getPostalAddressValue

public String getPostalAddressValue()
Returns the value of PostalAddress node.

Returns:
the value of PostalAddress node.

addEmailValue

public void addEmailValue(String value)
Adds the specified vlaue with the value of Email node.

Parameters:
value - the mail address

getEmailValues

public String[] getEmailValues()
Returns the array of value of Email node, reutrns null if they doesn't exist.

Returns:
the array of value of Email node.

addTelephoneValue

public void addTelephoneValue(String value)
Adds the specified vlaue with the value of Telephone node.

Parameters:
value - the telephone number

getTelephoneValues

public String[] getTelephoneValues()
Returns the array of value of Telephone node, reutrns null if they doesn't exist.

Returns:
the array of value of Telephone node.

setFaxValue

public void setFaxValue(String value)
Sets the specified value with Fax node.

Parameters:
value - the fax number

getFaxValue

public String getFaxValue()
Returns the value of Fax node, reutrns null if it doesn't exist.

Returns:
the value Fax node

setTimezoneValue

public void setTimezoneValue(String value)
Sets the specified value with Timezone node.

Parameters:
value - the timezone

getTimezoneValue

public String getTimezoneValue()
Returns the value of Timezone node, reutrns null if it doesn't exist.

Returns:
the value of Timezone node,

addContanct

public void addContanct(Contact con)
Adds the specified contact element

Parameters:
con - - contact element

getContacts

public Contact[] getContacts()
Returns the array of Contact value. reutrns null if they doesn't exist.

Returns:
the array of contact value

getContactRole

public String getContactRole()
Returns the contact role.

Returns:
the contact role.

setContactRole

public void setContactRole(String value)
Sets the contact role.

Parameters:
value - the contact role.

getContactType

public String getContactType()
Returns the contact type.

Returns:
the contact type.

setContactType

public void setContactType(String value)
Sets the contact type

Parameters:
value - the contact type

setRestriction

public void setRestriction(String value)
Sets the specified restriction value.

Parameters:
value - - restriction value

getRestriction

public String getRestriction()
Returns the restriction value. reutrns null if it doesn't exist.

Returns:
the restriction value.