Package com.verisign.epp.codec.orgext
Class EPPOrgExtCreate
java.lang.Object
com.verisign.epp.codec.orgext.EPPOrgExtCreate
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPOrgExtCreate is used in the extension to the create command
to define the org identifiers.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPOrgExtCreate.EPPOrgExtCreate(EPPOrgExtId aOrgId) Constructor forEPPOrgExtCreatethat takes a single organization id.EPPOrgExtCreate(List<EPPOrgExtId> aOrgIds) Constructor forEPPOrgExtCreatethat takes a list of organization ids. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrgId(EPPOrgExtId aOrgId) Add a organization id to the list of organization ids.clone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPOrgExtwith this instance.Returns the XML namespace associated with theEPPCodecComponent.Returns the list of organization ids.booleanAre there any organization ids?voidsetOrgIds(List<EPPOrgExtId> aOrgIds) Sets the organization ids.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgExtCreate.- See Also:
-
ELM_NAME
XML root tag forEPPOrgExtCreate.- See Also:
-
-
Constructor Details
-
EPPOrgExtCreate
public EPPOrgExtCreate()Default constructor forEPPOrgExtCreate. -
EPPOrgExtCreate
Constructor forEPPOrgExtCreatethat takes a single organization id.- Parameters:
aOrgId- Organization identifier
-
EPPOrgExtCreate
Constructor forEPPOrgExtCreatethat takes a list of organization ids.- Parameters:
aOrgIds- Organization identifiers
-
-
Method Details
-
hasOrgIds
public boolean hasOrgIds()Are there any organization ids?- Returns:
trueif there organization ids;falseotherwise.
-
getOrgIds
Returns the list of organization ids. An empty list indicates that there are no organization ids.- Returns:
- List of organization ids.
-
setOrgIds
Sets the organization ids.- Parameters:
aOrgIds- The list of organization ids. Set tonullor an empty list to indicate that there are no organization ids.
-
addOrgId
Add a organization id to the list of organization ids.- Parameters:
aOrgId- organization id to add to the list of organization ids.
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPOrgExtCreate
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPOrgExt - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPOrgExtwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-