Package com.verisign.epp.codec.org
Class EPPOrgCheckCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCheckCmd
com.verisign.epp.codec.org.EPPOrgCheckCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents a org <check> command that enables checking on the
availability of a set of client-specified but server-unique org identifiers.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPOrgCheckCmd.static final StringXML root tag forEPPOrgCheckCmd.Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionEPPOrgCheckCmddefault constructor.EPPOrgCheckCmd(String aTransId) EPPOrgCheckCmdconstructor that only takes the client transaction identifierEPPOrgCheckCmd(String aTransId, String aOrgId) EPPOrgCheckCmdconstructor for setting an individual org identifier to check.EPPOrgCheckCmd(String aTransId, List<String> aOrgIds) EPPOrgCheckCmdconstructor for setting the list of org identifiers to check. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend a org identifier to the list of org identifiers to check.clone()CloneEPPOrgCheckCmd.protected voidDecode theEPPOrgCheckCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPOrgCheckCmdinstance.booleanCompare an instance ofEPPOrgCheckCmdwith this instance.getKey()Gets the key for the organization object, which is the organization identifier.Gets the EPP command Namespace associated withEPPOrgCheckCmd.Get the list of org identifiers to check.booleanAre any org identifiers defined in the list of org identifiers?voidSet an individual org identifier to check.voidSet the list of org identifiers to check.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCheckCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgCheckCmd.- See Also:
-
ELM_NAME
XML root tag forEPPOrgCheckCmd.- See Also:
-
-
Constructor Details
-
EPPOrgCheckCmd
public EPPOrgCheckCmd()EPPOrgCheckCmddefault constructor. -
EPPOrgCheckCmd
EPPOrgCheckCmdconstructor that only takes the client transaction identifier- Parameters:
aTransId- Transaction Id associated with command.
-
EPPOrgCheckCmd
EPPOrgCheckCmdconstructor for setting an individual org identifier to check.- Parameters:
aTransId- Transaction Id associated with command.aOrgId- Org identifier to check
-
EPPOrgCheckCmd
EPPOrgCheckCmdconstructor for setting the list of org identifiers to check.- Parameters:
aTransId- Transaction Id associated with command.aOrgIds- List of Org identifiers to check
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPOrgCheckCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPOrgMapFactory.NS
-
getKey
Gets the key for the organization object, which is the organization identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The organization identifier if set with a single value;
nullotherwise.
-
hasOrgIds
public boolean hasOrgIds()Are any org identifiers defined in the list of org identifiers?- Returns:
trueif there is at least one org identifier defined;falseotherwise.
-
getOrgIds
Get the list of org identifiers to check.- Returns:
Listof org identifierString's
-
setOrgIds
Set the list of org identifiers to check.- Parameters:
aOrgIds-Listof org identifierString's
-
setOrgId
Set an individual org identifier to check. This method clears the existing list of org identifiers.- Parameters:
aOrgId- Org identifier to check
-
addOrgId
Append a org identifier to the list of org identifiers to check. This method does NOT clear the existing list of org identifiers.- Parameters:
aOrgId- Org identifier to check
-
doEncode
Encode a DOM Element tree from the attributes of theEPPOrgCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPOrgCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPOrgCheckCmdinstance.
-
doDecode
Decode theEPPOrgCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPOrgCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPOrgCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise.
-
clone
CloneEPPOrgCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPOrgCheckCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-