Package google.registry.xjc
Class XjcObject
java.lang.Object
google.registry.xjc.XjcObject
- Direct Known Subclasses:
AllocationToken
,BulkData
,Create
,DomainDelete
,DomainTransferRequest
,DomainUpdate
,Info
,Metadata
,PeriodType
,XjcContactAddRemType
,XjcContactAddrType
,XjcContactAuthIDType
,XjcContactAuthInfoType
,XjcContactCheck
,XjcContactCheckIDType
,XjcContactCheckType
,XjcContactChgPostalInfoType
,XjcContactChgType
,XjcContactChkData
,XjcContactCreate
,XjcContactCreData
,XjcContactDelete
,XjcContactDiscloseType
,XjcContactE164Type
,XjcContactInfData
,XjcContactIntLocType
,XjcContactPaCLIDType
,XjcContactPanData
,XjcContactPostalInfoType
,XjcContactStatusType
,XjcContactTrnData
,XjcContactUpdate
,XjcDomainAddRemType
,XjcDomainAuthInfoChgType
,XjcDomainAuthInfoType
,XjcDomainCheck
,XjcDomainCheckNameType
,XjcDomainCheckType
,XjcDomainChgType
,XjcDomainChkData
,XjcDomainContactType
,XjcDomainCreate
,XjcDomainCreData
,XjcDomainDelete
,XjcDomainHostAttrType
,XjcDomainInfData
,XjcDomainInfo
,XjcDomainInfoNameType
,XjcDomainNsType
,XjcDomainPaNameType
,XjcDomainPanData
,XjcDomainPeriodType
,XjcDomainRenData
,XjcDomainRenew
,XjcDomainStatusType
,XjcDomainTransfer
,XjcDomainTrnData
,XjcDomainUpdate
,XjcDsigCanonicalizationMethod
,XjcDsigDigestMethod
,XjcDsigDSAKeyValue
,XjcDsigKeyInfo
,XjcDsigKeyValue
,XjcDsigManifest
,XjcDsigObject
,XjcDsigPGPData
,XjcDsigReference
,XjcDsigRetrievalMethod
,XjcDsigRSAKeyValue
,XjcDsigSignature
,XjcDsigSignatureMethod
,XjcDsigSignatureProperties
,XjcDsigSignatureProperty
,XjcDsigSignatureValue
,XjcDsigSignedInfo
,XjcDsigSPKIData
,XjcDsigTransform
,XjcDsigTransforms
,XjcDsigX509Data
,XjcDsigX509IssuerSerialType
,XjcEpp
,XjcEppcomExtAuthInfoType
,XjcEppCommandType
,XjcEppcomPwAuthInfoType
,XjcEppcomReasonType
,XjcEppCredsOptionsType
,XjcEppDcpAccessType
,XjcEppDcpExpiryType
,XjcEppDcpOursType
,XjcEppDcpPurposeType
,XjcEppDcpRecipientType
,XjcEppDcpRetentionType
,XjcEppDcpStatementType
,XjcEppDcpType
,XjcEppErrValueType
,XjcEppExtAnyType
,XjcEppExtErrValueType
,XjcEppExtURIType
,XjcEppGreetingType
,XjcEppLoginSvcType
,XjcEppLoginType
,XjcEppMixedMsgType
,XjcEppMsgQType
,XjcEppMsgType
,XjcEppPollType
,XjcEppReadWriteType
,XjcEppResponse
,XjcEppResultType
,XjcEppSvcMenuType
,XjcEppTransferType
,XjcEppTrIDType
,XjcFee06Check
,XjcFee06ChkData
,XjcFee06CommandType
,XjcFee06CreditType
,XjcFee06DelData
,XjcFee06DomainCDType
,XjcFee06DomainCheckType
,XjcFee06FeeType
,XjcFee06InfData
,XjcFee06Info
,XjcFee06TransformCommandType
,XjcFee06TransformResultType
,XjcFee06TrnData
,XjcFee11Check
,XjcFee11ChkData
,XjcFee11CommandType
,XjcFee11CreditType
,XjcFee11DelData
,XjcFee11FeeType
,XjcFee11ObjectCDType
,XjcFee11ObjectCDType.Object
,XjcFee11TransformCommandType
,XjcFee11TransformResultType
,XjcFee11TrnData
,XjcFee12Check
,XjcFee12ChkData
,XjcFee12CommandCDType
,XjcFee12CommandCheckType
,XjcFee12CreditType
,XjcFee12FeeType
,XjcFee12ObjectCDType
,XjcFee12ObjectCDType.Object
,XjcFee12TransformCommandType
,XjcFee12TransformResultType
,XjcFee12TrnData
,XjcHostAddRemType
,XjcHostAddrType
,XjcHostCheck
,XjcHostCheckNameType
,XjcHostCheckType
,XjcHostChgType
,XjcHostChkData
,XjcHostCreate
,XjcHostCreData
,XjcHostInfData
,XjcHostPaNameType
,XjcHostPanData
,XjcHostSNameType
,XjcHostStatusType
,XjcHostUpdate
,XjcIirdeaCode
,XjcIirdeaResponse
,XjcIirdeaResult
,XjcLaunchCdNameType
,XjcLaunchCdType
,XjcLaunchCheck
,XjcLaunchChkData
,XjcLaunchClaimKeyType
,XjcLaunchCodeMarkType
,XjcLaunchCodeType
,XjcLaunchCreate
,XjcLaunchCreateNoticeType
,XjcLaunchIdContainerType
,XjcLaunchInfData
,XjcLaunchInfo
,XjcLaunchNoticeIDType
,XjcLaunchPhaseType
,XjcLaunchStatusType
,XjcMarkAbstractMarkType
,XjcMarkAddrType
,XjcMarkContactType
,XjcMarkCourtType
,XjcMarkE164Type
,XjcMarkHolderType
,XjcMarkProtectionType
,XjcMarkTrademarkType
,XjcMarkTreatyOrStatuteType
,XjcRdeContactTransferDataType
,XjcRdeContentsType
,XjcRdeContentType
,XjcRdeDeletesType
,XjcRdeDeleteType
,XjcRdeDeposit
,XjcRdeDomainTransferDataType
,XjcRdeHeaderCount
,XjcRdeMenuType
,XjcRdeNndnNameState
,XjcRdeNotification
,XjcRdeNotificationName
,XjcRdeRegistrarAddrType
,XjcRdeRegistrarPostalInfoType
,XjcRdeRegistrarWhoisInfoType
,XjcRdeReportReport
,XjcRdeRrType
,XjcRgpMixedType
,XjcRgpReportTextType
,XjcRgpReportType
,XjcRgpRespDataType
,XjcRgpRestoreType
,XjcRgpStatusType
,XjcRgpUpdate
,XjcSecdnsChgType
,XjcSecdnsDsDataType
,XjcSecdnsDsOrKeyType
,XjcSecdnsKeyDataType
,XjcSecdnsRemType
,XjcSecdnsUpdate
,XjcSmdAbstractSignedMark
,XjcSmdEncodedSignedMark
,XjcSmdIssuerInfo
The superclass for XML classes generated by JAXB that provides marshalling and validation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
marshal
(OutputStream out, Charset encoding) Validates and streamsthis
as formatted XML bytes with XML declaration.toString()
Turns object into a formatted XML string by any means necessary.
-
Constructor Details
-
XjcObject
public XjcObject()
-
-
Method Details
-
marshal
Validates and streamsthis
as formatted XML bytes with XML declaration.This object must be annotated with
XmlRootElement
, otherwise you should calltoString()
. This method will verify that your object strictly conforms to the schema defined inXjcXmlTransformer
. Because the output is streamed,XmlException
will most likely be thrown after output has been written.- Parameters:
out
- byte-oriented output for writing XML. This method won't close it.encoding
- should almost always be set to"UTF-8"
.- Throws:
XmlException
-
toString
Turns object into a formatted XML string by any means necessary.No validation is performed and the XML declaration is omitted. If the object can't be marshalled, a string describing the error is returned.
-