anon.terms
Class TermsAndConditions.Translation

java.lang.Object
  extended by anon.terms.TermsAndConditions.Translation
All Implemented Interfaces:
TermsAndConditionsTranslation, IXMLEncodable
Enclosing class:
TermsAndConditions

private class TermsAndConditions.Translation
extends java.lang.Object
implements IXMLEncodable, TermsAndConditionsTranslation

Class that represents a translation of the enclosing terms and conditions.


Field Summary
private  MultiCertPath certPath
           
private  boolean defaultTranslation
           
private  java.lang.String legalOpinionsUrl
           
private  java.lang.String locale
           
private  java.lang.String operationalAgreementUrl
           
private  OperatorAddress operatorAddress
           
private  java.lang.String privacyPolicyUrl
           
private  TCComposite sections
           
private  XMLSignature signature
           
private  java.lang.String templateReferenceId
           
private  org.w3c.dom.Element translationElement
           
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
 
Fields inherited from interface anon.terms.TermsAndConditionsTranslation
PROPERTY_NAME_LEGAL_OPINIONS, PROPERTY_NAME_OPERATIONAL_AGREEMENT, PROPERTY_NAME_PRIVACY_POLICY, PROPERTY_NAME_TEMPLATE_REFERENCE_ID, XML_ATTR_DEFAULT_LOCALE, XML_ATTR_LOCALE, XML_ATTR_REFERENCE_ID, XML_ELEMENT_CONTAINER_NAME, XML_ELEMENT_LEGAL_OPINIONS, XML_ELEMENT_NAME, XML_ELEMENT_OPERATIONAL_AGREEMENT, XML_ELEMENT_PRIVACY_POLICY
 
Constructor Summary
private TermsAndConditions.Translation()
           
(package private) TermsAndConditions.Translation(org.w3c.dom.Element translationElement)
           
private TermsAndConditions.Translation(org.w3c.dom.Element translationElement, boolean withAttributeCheck)
           
 
Method Summary
 boolean checkId()
           
 org.w3c.dom.Element createXMLOutput(org.w3c.dom.Document doc)
          This method creates an xml Element according to the current object state whereas toXMLElement outputs the xml represenation from which the object was ininitialized.
 TermsAndConditionsTranslation duplicateWithImports(org.w3c.dom.Element xmlImports)
           
 boolean equals(java.lang.Object obj)
           
 MultiCertPath getCertPath()
           
 java.util.Date getDate()
           
 java.lang.String getLegalOpinionsUrl()
           
 java.lang.String getLocale()
           
 java.lang.String getOperationalAgreementUrl()
           
 ServiceOperator getOperator()
           
 OperatorAddress getOperatorAddress()
           
 java.lang.String getPrivacyPolicyUrl()
           
 TCComposite getSections()
           
 XMLSignature getSignature()
           
 java.lang.String getTemplateReferenceId()
           
 org.w3c.dom.Element getTranslationElement()
           
 boolean hasContent()
           
 boolean isDefaultTranslation()
           
 boolean isValid()
           
 boolean isVerified()
           
 void setDefaultTranslation(boolean defaultTranslation)
           
 void setLegalOpinionsUrl(java.lang.String legalOpinionsUrl)
           
 void setLocale(java.lang.String locale)
           
 void setOperationalAgreementUrl(java.lang.String operationalAgreementUrl)
           
 void setOperatorAddress(OperatorAddress operatorAddress)
           
 void setPrivacyPolicyUrl(java.lang.String privacyPolicyUrl)
           
 void setSections(TCComposite sections)
           
 void setTemplateReferenceId(java.lang.String templateReferenceId)
           
 java.lang.String toString()
           
 org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
          merely outputs the doc from which this translation was initialized.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

templateReferenceId

private java.lang.String templateReferenceId

locale

private java.lang.String locale

defaultTranslation

private boolean defaultTranslation

translationElement

private org.w3c.dom.Element translationElement

privacyPolicyUrl

private java.lang.String privacyPolicyUrl

legalOpinionsUrl

private java.lang.String legalOpinionsUrl

operationalAgreementUrl

private java.lang.String operationalAgreementUrl

operatorAddress

private OperatorAddress operatorAddress

signature

private XMLSignature signature

certPath

private MultiCertPath certPath

sections

private TCComposite sections
Constructor Detail

TermsAndConditions.Translation

TermsAndConditions.Translation(org.w3c.dom.Element translationElement)
                         throws XMLParseException
Throws:
XMLParseException

TermsAndConditions.Translation

private TermsAndConditions.Translation()

TermsAndConditions.Translation

private TermsAndConditions.Translation(org.w3c.dom.Element translationElement,
                                       boolean withAttributeCheck)
                                throws XMLParseException
Throws:
XMLParseException
Method Detail

hasContent

public boolean hasContent()
Specified by:
hasContent in interface TermsAndConditionsTranslation

setTemplateReferenceId

public void setTemplateReferenceId(java.lang.String templateReferenceId)
Specified by:
setTemplateReferenceId in interface TermsAndConditionsTranslation

getTemplateReferenceId

public java.lang.String getTemplateReferenceId()
Specified by:
getTemplateReferenceId in interface TermsAndConditionsTranslation

setLocale

public void setLocale(java.lang.String locale)

getLocale

public java.lang.String getLocale()
Specified by:
getLocale in interface TermsAndConditionsTranslation

isDefaultTranslation

public boolean isDefaultTranslation()
Specified by:
isDefaultTranslation in interface TermsAndConditionsTranslation

setDefaultTranslation

public void setDefaultTranslation(boolean defaultTranslation)
Specified by:
setDefaultTranslation in interface TermsAndConditionsTranslation

getTranslationElement

public org.w3c.dom.Element getTranslationElement()
Specified by:
getTranslationElement in interface TermsAndConditionsTranslation

getSignature

public XMLSignature getSignature()

getCertPath

public MultiCertPath getCertPath()

isVerified

public boolean isVerified()

isValid

public boolean isValid()

checkId

public boolean checkId()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toXmlElement

public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
merely outputs the doc from which this translation was initialized. If you want to output the current use the method createXMLOutput. This method is to implement the IXMLEncodable interface and it should be used. if this translation was created from a signed XML node.

Specified by:
toXmlElement in interface IXMLEncodable
Parameters:
a_doc - a document
Returns:
the interface as xml element

createXMLOutput

public org.w3c.dom.Element createXMLOutput(org.w3c.dom.Document doc)
This method creates an xml Element according to the current object state whereas toXMLElement outputs the xml represenation from which the object was ininitialized. this method does not append teh element to the specified document.

Specified by:
createXMLOutput in interface TermsAndConditionsTranslation
Parameters:
doc - the document which should own the newly created translation element

setOperatorAddress

public void setOperatorAddress(OperatorAddress operatorAddress)
Specified by:
setOperatorAddress in interface TermsAndConditionsTranslation

getOperatorAddress

public OperatorAddress getOperatorAddress()
Specified by:
getOperatorAddress in interface TermsAndConditionsTranslation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDate

public java.util.Date getDate()
Specified by:
getDate in interface TermsAndConditionsTranslation

getOperator

public ServiceOperator getOperator()
Specified by:
getOperator in interface TermsAndConditionsTranslation

getPrivacyPolicyUrl

public java.lang.String getPrivacyPolicyUrl()
Specified by:
getPrivacyPolicyUrl in interface TermsAndConditionsTranslation

setPrivacyPolicyUrl

public void setPrivacyPolicyUrl(java.lang.String privacyPolicyUrl)
Specified by:
setPrivacyPolicyUrl in interface TermsAndConditionsTranslation

getLegalOpinionsUrl

public java.lang.String getLegalOpinionsUrl()
Specified by:
getLegalOpinionsUrl in interface TermsAndConditionsTranslation

setLegalOpinionsUrl

public void setLegalOpinionsUrl(java.lang.String legalOpinionsUrl)
Specified by:
setLegalOpinionsUrl in interface TermsAndConditionsTranslation

getOperationalAgreementUrl

public java.lang.String getOperationalAgreementUrl()
Specified by:
getOperationalAgreementUrl in interface TermsAndConditionsTranslation

setOperationalAgreementUrl

public void setOperationalAgreementUrl(java.lang.String operationalAgreementUrl)
Specified by:
setOperationalAgreementUrl in interface TermsAndConditionsTranslation

setSections

public void setSections(TCComposite sections)
Specified by:
setSections in interface TermsAndConditionsTranslation

getSections

public TCComposite getSections()
Specified by:
getSections in interface TermsAndConditionsTranslation

duplicateWithImports

public TermsAndConditionsTranslation duplicateWithImports(org.w3c.dom.Element xmlImports)
Specified by:
duplicateWithImports in interface TermsAndConditionsTranslation