![JAR search and dependency download from the Maven repository](/logo.png)
oasis.names.tc.ciq.xpil._3.OrganisationDetails Maven / Gradle / Ivy
Show all versions of stix Show documentation
/**
* Copyright (c) 2015, The MITRE Corporation. All rights reserved.
* See LICENSE for complete terms.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.06.23 at 10:59:44 AM EDT
//
package oasis.names.tc.ciq.xpil._3;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;
import javax.xml.transform.stream.StreamSource;
import oasis.names.tc.ciq.ct._3.DataQualityTypeList;
import oasis.names.tc.ciq.xnl._3.OrganisationNameType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.mitre.stix.DocumentUtilities;
import org.mitre.stix.STIXSchema;
import org.mitre.stix.ValidationEventHandler;
/**
* A container for defining the unique characteristics of an organisation only
*
* Java class for OrganisationDetailsType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="OrganisationDetailsType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}FreeTextLines" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xnl:3}OrganisationName" maxOccurs="unbounded"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Addresses" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Accounts" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}ContactNumbers" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Documents" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}ElectronicAddressIdentifiers" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Events" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Identifiers" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Memberships" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Relationships" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Revenues" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Stocks" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}Vehicles" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xpil:3}OrganisationInfo" minOccurs="0"/>
* </sequence>
* <attGroup ref="{urn:oasis:names:tc:ciq:ct:3}grValidityDate"/>
* <attGroup ref="{urn:oasis:names:tc:ciq:ct:3}grDataQuality"/>
* <attGroup ref="{urn:oasis:names:tc:ciq:ct:3}grLanguageCode"/>
* <attribute name="Usage" type="{urn:oasis:names:tc:ciq:xpil:3}OrganisationDetailsUsageList" />
* <attribute name="Status" type="{urn:oasis:names:tc:ciq:ct:3}StatusList" />
* <attribute name="OrganisationDetailsKey" type="{urn:oasis:names:tc:ciq:ct:3}String" />
* <attribute name="OrganisationDetailsKeyRef" type="{urn:oasis:names:tc:ciq:ct:3}String" />
* <attribute ref="{http://www.w3.org/1999/xlink}type"/>
* <attribute ref="{http://www.w3.org/1999/xlink}label"/>
* <attribute ref="{http://www.w3.org/1999/xlink}href"/>
* <anyAttribute namespace='##other'/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrganisationDetailsType", propOrder = { "freeTextLines",
"organisationNames", "addresses", "accounts", "contactNumbers",
"documents", "electronicAddressIdentifiers", "events", "identifiers",
"memberships", "relationships", "revenues", "stocks", "vehicles",
"organisationInfo" })
@XmlRootElement(name = "OrganisationDetails")
public class OrganisationDetails implements Equals, HashCode, ToString {
@XmlElement(name = "FreeTextLines")
protected FreeTextLines freeTextLines;
@XmlElement(name = "OrganisationName", namespace = "urn:oasis:names:tc:ciq:xnl:3", required = true)
protected List organisationNames;
@XmlElement(name = "Addresses")
protected Addresses addresses;
@XmlElement(name = "Accounts")
protected Accounts accounts;
@XmlElement(name = "ContactNumbers")
protected ContactNumbers contactNumbers;
@XmlElement(name = "Documents")
protected Documents documents;
@XmlElement(name = "ElectronicAddressIdentifiers")
protected ElectronicAddressIdentifiers electronicAddressIdentifiers;
@XmlElement(name = "Events")
protected Events events;
@XmlElement(name = "Identifiers")
protected Identifiers identifiers;
@XmlElement(name = "Memberships")
protected Memberships memberships;
@XmlElement(name = "Relationships")
protected Relationships relationships;
@XmlElement(name = "Revenues")
protected Revenues revenues;
@XmlElement(name = "Stocks")
protected Stocks stocks;
@XmlElement(name = "Vehicles")
protected Vehicles vehicles;
@XmlElement(name = "OrganisationInfo")
protected OrganisationInfo organisationInfo;
@XmlAttribute(name = "Usage", namespace = "urn:oasis:names:tc:ciq:xpil:3")
protected String usage;
@XmlAttribute(name = "Status", namespace = "urn:oasis:names:tc:ciq:xpil:3")
protected String status;
@XmlAttribute(name = "OrganisationDetailsKey", namespace = "urn:oasis:names:tc:ciq:xpil:3")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String organisationDetailsKey;
@XmlAttribute(name = "OrganisationDetailsKeyRef", namespace = "urn:oasis:names:tc:ciq:xpil:3")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String organisationDetailsKeyRef;
@XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink")
protected String type;
@XmlAttribute(name = "label", namespace = "http://www.w3.org/1999/xlink")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NCName")
protected String label;
@XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink")
@XmlSchemaType(name = "anyURI")
protected String href;
@XmlAttribute(name = "DateValidFrom", namespace = "urn:oasis:names:tc:ciq:ct:3")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dateValidFrom;
@XmlAttribute(name = "DateValidTo", namespace = "urn:oasis:names:tc:ciq:ct:3")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dateValidTo;
@XmlAttribute(name = "DataQualityType", namespace = "urn:oasis:names:tc:ciq:ct:3")
protected DataQualityTypeList dataQualityType;
@XmlAttribute(name = "ValidFrom", namespace = "urn:oasis:names:tc:ciq:ct:3")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar validFrom;
@XmlAttribute(name = "ValidTo", namespace = "urn:oasis:names:tc:ciq:ct:3")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar validTo;
@XmlAttribute(name = "LanguageCode", namespace = "urn:oasis:names:tc:ciq:ct:3")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String languageCode;
@XmlAnyAttribute
private Map otherAttributes = new HashMap();
/**
* Default no-arg constructor
*
*/
public OrganisationDetails() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public OrganisationDetails(final FreeTextLines freeTextLines,
final List organisationNames,
final Addresses addresses, final Accounts accounts,
final ContactNumbers contactNumbers, final Documents documents,
final ElectronicAddressIdentifiers electronicAddressIdentifiers,
final Events events, final Identifiers identifiers,
final Memberships memberships, final Relationships relationships,
final Revenues revenues, final Stocks stocks,
final Vehicles vehicles, final OrganisationInfo organisationInfo,
final String usage, final String status,
final String organisationDetailsKey,
final String organisationDetailsKeyRef, final String type,
final String label, final String href,
final XMLGregorianCalendar dateValidFrom,
final XMLGregorianCalendar dateValidTo,
final DataQualityTypeList dataQualityType,
final XMLGregorianCalendar validFrom,
final XMLGregorianCalendar validTo, final String languageCode,
final Map otherAttributes) {
this.freeTextLines = freeTextLines;
this.organisationNames = organisationNames;
this.addresses = addresses;
this.accounts = accounts;
this.contactNumbers = contactNumbers;
this.documents = documents;
this.electronicAddressIdentifiers = electronicAddressIdentifiers;
this.events = events;
this.identifiers = identifiers;
this.memberships = memberships;
this.relationships = relationships;
this.revenues = revenues;
this.stocks = stocks;
this.vehicles = vehicles;
this.organisationInfo = organisationInfo;
this.usage = usage;
this.status = status;
this.organisationDetailsKey = organisationDetailsKey;
this.organisationDetailsKeyRef = organisationDetailsKeyRef;
this.type = type;
this.label = label;
this.href = href;
this.dateValidFrom = dateValidFrom;
this.dateValidTo = dateValidTo;
this.dataQualityType = dataQualityType;
this.validFrom = validFrom;
this.validTo = validTo;
this.languageCode = languageCode;
this.otherAttributes = otherAttributes;
}
/**
* Gets the value of the freeTextLines property.
*
* @return
* possible object is
* {@link FreeTextLines }
*
*/
public FreeTextLines getFreeTextLines() {
return freeTextLines;
}
/**
* Sets the value of the freeTextLines property.
*
* @param value
* allowed object is
* {@link FreeTextLines }
*
*/
public void setFreeTextLines(FreeTextLines value) {
this.freeTextLines = value;
}
/**
* Gets the value of the organisationNames property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the organisationNames property.
*
*
* For example, to add a new item, do as follows:
*
* getOrganisationNames().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link OrganisationNameType }
*
*
*/
public List getOrganisationNames() {
if (organisationNames == null) {
organisationNames = new ArrayList();
}
return this.organisationNames;
}
/**
* Gets the value of the addresses property.
*
* @return
* possible object is
* {@link Addresses }
*
*/
public Addresses getAddresses() {
return addresses;
}
/**
* Sets the value of the addresses property.
*
* @param value
* allowed object is
* {@link Addresses }
*
*/
public void setAddresses(Addresses value) {
this.addresses = value;
}
/**
* A container to define the accounts details of the party such as utility account, financil accounts
*
* @return
* possible object is
* {@link Accounts }
*
*/
public Accounts getAccounts() {
return accounts;
}
/**
* Sets the value of the accounts property.
*
* @param value
* allowed object is
* {@link Accounts }
*
*/
public void setAccounts(Accounts value) {
this.accounts = value;
}
/**
* Gets the value of the contactNumbers property.
*
* @return
* possible object is
* {@link ContactNumbers }
*
*/
public ContactNumbers getContactNumbers() {
return contactNumbers;
}
/**
* Sets the value of the contactNumbers property.
*
* @param value
* allowed object is
* {@link ContactNumbers }
*
*/
public void setContactNumbers(ContactNumbers value) {
this.contactNumbers = value;
}
/**
* A container for identification document and cards of the party that are unique to the party. e.g. license, identification card, credit card, etc
*
* @return
* possible object is
* {@link Documents }
*
*/
public Documents getDocuments() {
return documents;
}
/**
* Sets the value of the documents property.
*
* @param value
* allowed object is
* {@link Documents }
*
*/
public void setDocuments(Documents value) {
this.documents = value;
}
/**
* Gets the value of the electronicAddressIdentifiers property.
*
* @return
* possible object is
* {@link ElectronicAddressIdentifiers }
*
*/
public ElectronicAddressIdentifiers getElectronicAddressIdentifiers() {
return electronicAddressIdentifiers;
}
/**
* Sets the value of the electronicAddressIdentifiers property.
*
* @param value
* allowed object is
* {@link ElectronicAddressIdentifiers }
*
*/
public void setElectronicAddressIdentifiers(
ElectronicAddressIdentifiers value) {
this.electronicAddressIdentifiers = value;
}
/**
* Gets the value of the events property.
*
* @return
* possible object is
* {@link Events }
*
*/
public Events getEvents() {
return events;
}
/**
* Sets the value of the events property.
*
* @param value
* allowed object is
* {@link Events }
*
*/
public void setEvents(Events value) {
this.events = value;
}
/**
* Gets the value of the identifiers property.
*
* @return
* possible object is
* {@link Identifiers }
*
*/
public Identifiers getIdentifiers() {
return identifiers;
}
/**
* Sets the value of the identifiers property.
*
* @param value
* allowed object is
* {@link Identifiers }
*
*/
public void setIdentifiers(Identifiers value) {
this.identifiers = value;
}
/**
* A container for memberships of party with other organisations (e.g. industry groups) or social networks (clubs, association, etc)
*
* @return
* possible object is
* {@link Memberships }
*
*/
public Memberships getMemberships() {
return memberships;
}
/**
* Sets the value of the memberships property.
*
* @param value
* allowed object is
* {@link Memberships }
*
*/
public void setMemberships(Memberships value) {
this.memberships = value;
}
/**
* Relationships with other parties (persons or organisations, and the nature of relationship). Examples:
* - For person: Contacts, blood relatives, friends, referees, customers, etc
* - for Organisation: Subsidiary, Parent company, Branches, Divisions, Partners, etc
*
* @return
* possible object is
* {@link Relationships }
*
*/
public Relationships getRelationships() {
return relationships;
}
/**
* Sets the value of the relationships property.
*
* @param value
* allowed object is
* {@link Relationships }
*
*/
public void setRelationships(Relationships value) {
this.relationships = value;
}
/**
* Container for income / revenue information of the party (salary/organisation revenue)
*
* @return
* possible object is
* {@link Revenues }
*
*/
public Revenues getRevenues() {
return revenues;
}
/**
* Sets the value of the revenues property.
*
* @param value
* allowed object is
* {@link Revenues }
*
*/
public void setRevenues(Revenues value) {
this.revenues = value;
}
/**
* Gets the value of the stocks property.
*
* @return
* possible object is
* {@link Stocks }
*
*/
public Stocks getStocks() {
return stocks;
}
/**
* Sets the value of the stocks property.
*
* @param value
* allowed object is
* {@link Stocks }
*
*/
public void setStocks(Stocks value) {
this.stocks = value;
}
/**
* Gets the value of the vehicles property.
*
* @return
* possible object is
* {@link Vehicles }
*
*/
public Vehicles getVehicles() {
return vehicles;
}
/**
* Sets the value of the vehicles property.
*
* @param value
* allowed object is
* {@link Vehicles }
*
*/
public void setVehicles(Vehicles value) {
this.vehicles = value;
}
/**
* Container for other person specific details that are not covered in this schema elements that are common to a party
*
* @return
* possible object is
* {@link OrganisationInfo }
*
*/
public OrganisationInfo getOrganisationInfo() {
return organisationInfo;
}
/**
* Sets the value of the organisationInfo property.
*
* @param value
* allowed object is
* {@link OrganisationInfo }
*
*/
public void setOrganisationInfo(OrganisationInfo value) {
this.organisationInfo = value;
}
/**
* Gets the value of the usage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUsage() {
return usage;
}
/**
* Sets the value of the usage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUsage(String value) {
this.usage = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
this.status = value;
}
/**
* Gets the value of the organisationDetailsKey property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrganisationDetailsKey() {
return organisationDetailsKey;
}
/**
* Sets the value of the organisationDetailsKey property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrganisationDetailsKey(String value) {
this.organisationDetailsKey = value;
}
/**
* Gets the value of the organisationDetailsKeyRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrganisationDetailsKeyRef() {
return organisationDetailsKeyRef;
}
/**
* Sets the value of the organisationDetailsKeyRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrganisationDetailsKeyRef(String value) {
this.organisationDetailsKeyRef = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the label property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLabel(String value) {
this.label = value;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
/**
* Gets the value of the dateValidFrom property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDateValidFrom() {
return dateValidFrom;
}
/**
* Sets the value of the dateValidFrom property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDateValidFrom(XMLGregorianCalendar value) {
this.dateValidFrom = value;
}
/**
* Gets the value of the dateValidTo property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDateValidTo() {
return dateValidTo;
}
/**
* Sets the value of the dateValidTo property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDateValidTo(XMLGregorianCalendar value) {
this.dateValidTo = value;
}
/**
* Gets the value of the dataQualityType property.
*
* @return
* possible object is
* {@link DataQualityTypeList }
*
*/
public DataQualityTypeList getDataQualityType() {
return dataQualityType;
}
/**
* Sets the value of the dataQualityType property.
*
* @param value
* allowed object is
* {@link DataQualityTypeList }
*
*/
public void setDataQualityType(DataQualityTypeList value) {
this.dataQualityType = value;
}
/**
* Gets the value of the validFrom property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getValidFrom() {
return validFrom;
}
/**
* Sets the value of the validFrom property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setValidFrom(XMLGregorianCalendar value) {
this.validFrom = value;
}
/**
* Gets the value of the validTo property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getValidTo() {
return validTo;
}
/**
* Sets the value of the validTo property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setValidTo(XMLGregorianCalendar value) {
this.validTo = value;
}
/**
* Gets the value of the languageCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguageCode() {
return languageCode;
}
/**
* Sets the value of the languageCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguageCode(String value) {
this.languageCode = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
*
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map getOtherAttributes() {
return otherAttributes;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator,
Object object, EqualsStrategy strategy) {
if (!(object instanceof OrganisationDetails)) {
return false;
}
if (this == object) {
return true;
}
final OrganisationDetails that = ((OrganisationDetails) object);
{
FreeTextLines lhsFreeTextLines;
lhsFreeTextLines = this.getFreeTextLines();
FreeTextLines rhsFreeTextLines;
rhsFreeTextLines = that.getFreeTextLines();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"freeTextLines", lhsFreeTextLines), LocatorUtils.property(
thatLocator, "freeTextLines", rhsFreeTextLines),
lhsFreeTextLines, rhsFreeTextLines)) {
return false;
}
}
{
List lhsOrganisationNames;
lhsOrganisationNames = (((this.organisationNames != null) && (!this.organisationNames
.isEmpty())) ? this.getOrganisationNames() : null);
List rhsOrganisationNames;
rhsOrganisationNames = (((that.organisationNames != null) && (!that.organisationNames
.isEmpty())) ? that.getOrganisationNames() : null);
if (!strategy.equals(LocatorUtils.property(thisLocator,
"organisationNames", lhsOrganisationNames), LocatorUtils
.property(thatLocator, "organisationNames",
rhsOrganisationNames), lhsOrganisationNames,
rhsOrganisationNames)) {
return false;
}
}
{
Addresses lhsAddresses;
lhsAddresses = this.getAddresses();
Addresses rhsAddresses;
rhsAddresses = that.getAddresses();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"addresses", lhsAddresses), LocatorUtils.property(
thatLocator, "addresses", rhsAddresses), lhsAddresses,
rhsAddresses)) {
return false;
}
}
{
Accounts lhsAccounts;
lhsAccounts = this.getAccounts();
Accounts rhsAccounts;
rhsAccounts = that.getAccounts();
if (!strategy
.equals(LocatorUtils.property(thisLocator, "accounts",
lhsAccounts), LocatorUtils.property(thatLocator,
"accounts", rhsAccounts), lhsAccounts, rhsAccounts)) {
return false;
}
}
{
ContactNumbers lhsContactNumbers;
lhsContactNumbers = this.getContactNumbers();
ContactNumbers rhsContactNumbers;
rhsContactNumbers = that.getContactNumbers();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"contactNumbers", lhsContactNumbers),
LocatorUtils.property(thatLocator, "contactNumbers",
rhsContactNumbers), lhsContactNumbers,
rhsContactNumbers)) {
return false;
}
}
{
Documents lhsDocuments;
lhsDocuments = this.getDocuments();
Documents rhsDocuments;
rhsDocuments = that.getDocuments();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"documents", lhsDocuments), LocatorUtils.property(
thatLocator, "documents", rhsDocuments), lhsDocuments,
rhsDocuments)) {
return false;
}
}
{
ElectronicAddressIdentifiers lhsElectronicAddressIdentifiers;
lhsElectronicAddressIdentifiers = this
.getElectronicAddressIdentifiers();
ElectronicAddressIdentifiers rhsElectronicAddressIdentifiers;
rhsElectronicAddressIdentifiers = that
.getElectronicAddressIdentifiers();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"electronicAddressIdentifiers",
lhsElectronicAddressIdentifiers), LocatorUtils.property(
thatLocator, "electronicAddressIdentifiers",
rhsElectronicAddressIdentifiers),
lhsElectronicAddressIdentifiers,
rhsElectronicAddressIdentifiers)) {
return false;
}
}
{
Events lhsEvents;
lhsEvents = this.getEvents();
Events rhsEvents;
rhsEvents = that.getEvents();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "events", lhsEvents),
LocatorUtils.property(thatLocator, "events", rhsEvents),
lhsEvents, rhsEvents)) {
return false;
}
}
{
Identifiers lhsIdentifiers;
lhsIdentifiers = this.getIdentifiers();
Identifiers rhsIdentifiers;
rhsIdentifiers = that.getIdentifiers();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"identifiers", lhsIdentifiers), LocatorUtils.property(
thatLocator, "identifiers", rhsIdentifiers),
lhsIdentifiers, rhsIdentifiers)) {
return false;
}
}
{
Memberships lhsMemberships;
lhsMemberships = this.getMemberships();
Memberships rhsMemberships;
rhsMemberships = that.getMemberships();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"memberships", lhsMemberships), LocatorUtils.property(
thatLocator, "memberships", rhsMemberships),
lhsMemberships, rhsMemberships)) {
return false;
}
}
{
Relationships lhsRelationships;
lhsRelationships = this.getRelationships();
Relationships rhsRelationships;
rhsRelationships = that.getRelationships();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"relationships", lhsRelationships), LocatorUtils.property(
thatLocator, "relationships", rhsRelationships),
lhsRelationships, rhsRelationships)) {
return false;
}
}
{
Revenues lhsRevenues;
lhsRevenues = this.getRevenues();
Revenues rhsRevenues;
rhsRevenues = that.getRevenues();
if (!strategy
.equals(LocatorUtils.property(thisLocator, "revenues",
lhsRevenues), LocatorUtils.property(thatLocator,
"revenues", rhsRevenues), lhsRevenues, rhsRevenues)) {
return false;
}
}
{
Stocks lhsStocks;
lhsStocks = this.getStocks();
Stocks rhsStocks;
rhsStocks = that.getStocks();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "stocks", lhsStocks),
LocatorUtils.property(thatLocator, "stocks", rhsStocks),
lhsStocks, rhsStocks)) {
return false;
}
}
{
Vehicles lhsVehicles;
lhsVehicles = this.getVehicles();
Vehicles rhsVehicles;
rhsVehicles = that.getVehicles();
if (!strategy
.equals(LocatorUtils.property(thisLocator, "vehicles",
lhsVehicles), LocatorUtils.property(thatLocator,
"vehicles", rhsVehicles), lhsVehicles, rhsVehicles)) {
return false;
}
}
{
OrganisationInfo lhsOrganisationInfo;
lhsOrganisationInfo = this.getOrganisationInfo();
OrganisationInfo rhsOrganisationInfo;
rhsOrganisationInfo = that.getOrganisationInfo();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"organisationInfo", lhsOrganisationInfo), LocatorUtils
.property(thatLocator, "organisationInfo",
rhsOrganisationInfo), lhsOrganisationInfo,
rhsOrganisationInfo)) {
return false;
}
}
{
String lhsUsage;
lhsUsage = this.getUsage();
String rhsUsage;
rhsUsage = that.getUsage();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "usage", lhsUsage),
LocatorUtils.property(thatLocator, "usage", rhsUsage),
lhsUsage, rhsUsage)) {
return false;
}
}
{
String lhsStatus;
lhsStatus = this.getStatus();
String rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "status", lhsStatus),
LocatorUtils.property(thatLocator, "status", rhsStatus),
lhsStatus, rhsStatus)) {
return false;
}
}
{
String lhsOrganisationDetailsKey;
lhsOrganisationDetailsKey = this.getOrganisationDetailsKey();
String rhsOrganisationDetailsKey;
rhsOrganisationDetailsKey = that.getOrganisationDetailsKey();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"organisationDetailsKey", lhsOrganisationDetailsKey),
LocatorUtils
.property(thatLocator, "organisationDetailsKey",
rhsOrganisationDetailsKey),
lhsOrganisationDetailsKey, rhsOrganisationDetailsKey)) {
return false;
}
}
{
String lhsOrganisationDetailsKeyRef;
lhsOrganisationDetailsKeyRef = this.getOrganisationDetailsKeyRef();
String rhsOrganisationDetailsKeyRef;
rhsOrganisationDetailsKeyRef = that.getOrganisationDetailsKeyRef();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"organisationDetailsKeyRef", lhsOrganisationDetailsKeyRef),
LocatorUtils.property(thatLocator,
"organisationDetailsKeyRef",
rhsOrganisationDetailsKeyRef),
lhsOrganisationDetailsKeyRef, rhsOrganisationDetailsKeyRef)) {
return false;
}
}
{
String lhsType;
lhsType = this.getType();
String rhsType;
rhsType = that.getType();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "type", lhsType),
LocatorUtils.property(thatLocator, "type", rhsType),
lhsType, rhsType)) {
return false;
}
}
{
String lhsLabel;
lhsLabel = this.getLabel();
String rhsLabel;
rhsLabel = that.getLabel();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "label", lhsLabel),
LocatorUtils.property(thatLocator, "label", rhsLabel),
lhsLabel, rhsLabel)) {
return false;
}
}
{
String lhsHref;
lhsHref = this.getHref();
String rhsHref;
rhsHref = that.getHref();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "href", lhsHref),
LocatorUtils.property(thatLocator, "href", rhsHref),
lhsHref, rhsHref)) {
return false;
}
}
{
XMLGregorianCalendar lhsDateValidFrom;
lhsDateValidFrom = this.getDateValidFrom();
XMLGregorianCalendar rhsDateValidFrom;
rhsDateValidFrom = that.getDateValidFrom();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"dateValidFrom", lhsDateValidFrom), LocatorUtils.property(
thatLocator, "dateValidFrom", rhsDateValidFrom),
lhsDateValidFrom, rhsDateValidFrom)) {
return false;
}
}
{
XMLGregorianCalendar lhsDateValidTo;
lhsDateValidTo = this.getDateValidTo();
XMLGregorianCalendar rhsDateValidTo;
rhsDateValidTo = that.getDateValidTo();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"dateValidTo", lhsDateValidTo), LocatorUtils.property(
thatLocator, "dateValidTo", rhsDateValidTo),
lhsDateValidTo, rhsDateValidTo)) {
return false;
}
}
{
DataQualityTypeList lhsDataQualityType;
lhsDataQualityType = this.getDataQualityType();
DataQualityTypeList rhsDataQualityType;
rhsDataQualityType = that.getDataQualityType();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"dataQualityType", lhsDataQualityType), LocatorUtils
.property(thatLocator, "dataQualityType",
rhsDataQualityType), lhsDataQualityType,
rhsDataQualityType)) {
return false;
}
}
{
XMLGregorianCalendar lhsValidFrom;
lhsValidFrom = this.getValidFrom();
XMLGregorianCalendar rhsValidFrom;
rhsValidFrom = that.getValidFrom();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"validFrom", lhsValidFrom), LocatorUtils.property(
thatLocator, "validFrom", rhsValidFrom), lhsValidFrom,
rhsValidFrom)) {
return false;
}
}
{
XMLGregorianCalendar lhsValidTo;
lhsValidTo = this.getValidTo();
XMLGregorianCalendar rhsValidTo;
rhsValidTo = that.getValidTo();
if (!strategy.equals(
LocatorUtils.property(thisLocator, "validTo", lhsValidTo),
LocatorUtils.property(thatLocator, "validTo", rhsValidTo),
lhsValidTo, rhsValidTo)) {
return false;
}
}
{
String lhsLanguageCode;
lhsLanguageCode = this.getLanguageCode();
String rhsLanguageCode;
rhsLanguageCode = that.getLanguageCode();
if (!strategy.equals(LocatorUtils.property(thisLocator,
"languageCode", lhsLanguageCode), LocatorUtils.property(
thatLocator, "languageCode", rhsLanguageCode),
lhsLanguageCode, rhsLanguageCode)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
FreeTextLines theFreeTextLines;
theFreeTextLines = this.getFreeTextLines();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"freeTextLines", theFreeTextLines), currentHashCode,
theFreeTextLines);
}
{
List theOrganisationNames;
theOrganisationNames = (((this.organisationNames != null) && (!this.organisationNames
.isEmpty())) ? this.getOrganisationNames() : null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"organisationNames", theOrganisationNames),
currentHashCode, theOrganisationNames);
}
{
Addresses theAddresses;
theAddresses = this.getAddresses();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "addresses", theAddresses),
currentHashCode, theAddresses);
}
{
Accounts theAccounts;
theAccounts = this.getAccounts();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "accounts", theAccounts),
currentHashCode, theAccounts);
}
{
ContactNumbers theContactNumbers;
theContactNumbers = this.getContactNumbers();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"contactNumbers", theContactNumbers), currentHashCode,
theContactNumbers);
}
{
Documents theDocuments;
theDocuments = this.getDocuments();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "documents", theDocuments),
currentHashCode, theDocuments);
}
{
ElectronicAddressIdentifiers theElectronicAddressIdentifiers;
theElectronicAddressIdentifiers = this
.getElectronicAddressIdentifiers();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"electronicAddressIdentifiers",
theElectronicAddressIdentifiers), currentHashCode,
theElectronicAddressIdentifiers);
}
{
Events theEvents;
theEvents = this.getEvents();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "events", theEvents),
currentHashCode, theEvents);
}
{
Identifiers theIdentifiers;
theIdentifiers = this.getIdentifiers();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"identifiers", theIdentifiers), currentHashCode,
theIdentifiers);
}
{
Memberships theMemberships;
theMemberships = this.getMemberships();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"memberships", theMemberships), currentHashCode,
theMemberships);
}
{
Relationships theRelationships;
theRelationships = this.getRelationships();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"relationships", theRelationships), currentHashCode,
theRelationships);
}
{
Revenues theRevenues;
theRevenues = this.getRevenues();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "revenues", theRevenues),
currentHashCode, theRevenues);
}
{
Stocks theStocks;
theStocks = this.getStocks();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "stocks", theStocks),
currentHashCode, theStocks);
}
{
Vehicles theVehicles;
theVehicles = this.getVehicles();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "vehicles", theVehicles),
currentHashCode, theVehicles);
}
{
OrganisationInfo theOrganisationInfo;
theOrganisationInfo = this.getOrganisationInfo();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"organisationInfo", theOrganisationInfo), currentHashCode,
theOrganisationInfo);
}
{
String theUsage;
theUsage = this.getUsage();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "usage", theUsage),
currentHashCode, theUsage);
}
{
String theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "status", theStatus),
currentHashCode, theStatus);
}
{
String theOrganisationDetailsKey;
theOrganisationDetailsKey = this.getOrganisationDetailsKey();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"organisationDetailsKey", theOrganisationDetailsKey),
currentHashCode, theOrganisationDetailsKey);
}
{
String theOrganisationDetailsKeyRef;
theOrganisationDetailsKeyRef = this.getOrganisationDetailsKeyRef();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"organisationDetailsKeyRef", theOrganisationDetailsKeyRef),
currentHashCode, theOrganisationDetailsKeyRef);
}
{
String theType;
theType = this.getType();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "type", theType),
currentHashCode, theType);
}
{
String theLabel;
theLabel = this.getLabel();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "label", theLabel),
currentHashCode, theLabel);
}
{
String theHref;
theHref = this.getHref();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "href", theHref),
currentHashCode, theHref);
}
{
XMLGregorianCalendar theDateValidFrom;
theDateValidFrom = this.getDateValidFrom();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"dateValidFrom", theDateValidFrom), currentHashCode,
theDateValidFrom);
}
{
XMLGregorianCalendar theDateValidTo;
theDateValidTo = this.getDateValidTo();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"dateValidTo", theDateValidTo), currentHashCode,
theDateValidTo);
}
{
DataQualityTypeList theDataQualityType;
theDataQualityType = this.getDataQualityType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"dataQualityType", theDataQualityType), currentHashCode,
theDataQualityType);
}
{
XMLGregorianCalendar theValidFrom;
theValidFrom = this.getValidFrom();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "validFrom", theValidFrom),
currentHashCode, theValidFrom);
}
{
XMLGregorianCalendar theValidTo;
theValidTo = this.getValidTo();
currentHashCode = strategy.hashCode(
LocatorUtils.property(locator, "validTo", theValidTo),
currentHashCode, theValidTo);
}
{
String theLanguageCode;
theLanguageCode = this.getLanguageCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator,
"languageCode", theLanguageCode), currentHashCode,
theLanguageCode);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public OrganisationDetails withFreeTextLines(FreeTextLines value) {
setFreeTextLines(value);
return this;
}
public OrganisationDetails withOrganisationNames(
OrganisationNameType... values) {
if (values != null) {
for (OrganisationNameType value : values) {
getOrganisationNames().add(value);
}
}
return this;
}
public OrganisationDetails withOrganisationNames(
Collection values) {
if (values != null) {
getOrganisationNames().addAll(values);
}
return this;
}
public OrganisationDetails withAddresses(Addresses value) {
setAddresses(value);
return this;
}
public OrganisationDetails withAccounts(Accounts value) {
setAccounts(value);
return this;
}
public OrganisationDetails withContactNumbers(ContactNumbers value) {
setContactNumbers(value);
return this;
}
public OrganisationDetails withDocuments(Documents value) {
setDocuments(value);
return this;
}
public OrganisationDetails withElectronicAddressIdentifiers(
ElectronicAddressIdentifiers value) {
setElectronicAddressIdentifiers(value);
return this;
}
public OrganisationDetails withEvents(Events value) {
setEvents(value);
return this;
}
public OrganisationDetails withIdentifiers(Identifiers value) {
setIdentifiers(value);
return this;
}
public OrganisationDetails withMemberships(Memberships value) {
setMemberships(value);
return this;
}
public OrganisationDetails withRelationships(Relationships value) {
setRelationships(value);
return this;
}
public OrganisationDetails withRevenues(Revenues value) {
setRevenues(value);
return this;
}
public OrganisationDetails withStocks(Stocks value) {
setStocks(value);
return this;
}
public OrganisationDetails withVehicles(Vehicles value) {
setVehicles(value);
return this;
}
public OrganisationDetails withOrganisationInfo(OrganisationInfo value) {
setOrganisationInfo(value);
return this;
}
public OrganisationDetails withUsage(String value) {
setUsage(value);
return this;
}
public OrganisationDetails withStatus(String value) {
setStatus(value);
return this;
}
public OrganisationDetails withOrganisationDetailsKey(String value) {
setOrganisationDetailsKey(value);
return this;
}
public OrganisationDetails withOrganisationDetailsKeyRef(String value) {
setOrganisationDetailsKeyRef(value);
return this;
}
public OrganisationDetails withType(String value) {
setType(value);
return this;
}
public OrganisationDetails withLabel(String value) {
setLabel(value);
return this;
}
public OrganisationDetails withHref(String value) {
setHref(value);
return this;
}
public OrganisationDetails withDateValidFrom(XMLGregorianCalendar value) {
setDateValidFrom(value);
return this;
}
public OrganisationDetails withDateValidTo(XMLGregorianCalendar value) {
setDateValidTo(value);
return this;
}
public OrganisationDetails withDataQualityType(DataQualityTypeList value) {
setDataQualityType(value);
return this;
}
public OrganisationDetails withValidFrom(XMLGregorianCalendar value) {
setValidFrom(value);
return this;
}
public OrganisationDetails withValidTo(XMLGregorianCalendar value) {
setValidTo(value);
return this;
}
public OrganisationDetails withLanguageCode(String value) {
setLanguageCode(value);
return this;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer,
ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator,
StringBuilder buffer, ToStringStrategy strategy) {
{
FreeTextLines theFreeTextLines;
theFreeTextLines = this.getFreeTextLines();
strategy.appendField(locator, this, "freeTextLines", buffer,
theFreeTextLines);
}
{
List theOrganisationNames;
theOrganisationNames = (((this.organisationNames != null) && (!this.organisationNames
.isEmpty())) ? this.getOrganisationNames() : null);
strategy.appendField(locator, this, "organisationNames", buffer,
theOrganisationNames);
}
{
Addresses theAddresses;
theAddresses = this.getAddresses();
strategy.appendField(locator, this, "addresses", buffer,
theAddresses);
}
{
Accounts theAccounts;
theAccounts = this.getAccounts();
strategy.appendField(locator, this, "accounts", buffer, theAccounts);
}
{
ContactNumbers theContactNumbers;
theContactNumbers = this.getContactNumbers();
strategy.appendField(locator, this, "contactNumbers", buffer,
theContactNumbers);
}
{
Documents theDocuments;
theDocuments = this.getDocuments();
strategy.appendField(locator, this, "documents", buffer,
theDocuments);
}
{
ElectronicAddressIdentifiers theElectronicAddressIdentifiers;
theElectronicAddressIdentifiers = this
.getElectronicAddressIdentifiers();
strategy.appendField(locator, this, "electronicAddressIdentifiers",
buffer, theElectronicAddressIdentifiers);
}
{
Events theEvents;
theEvents = this.getEvents();
strategy.appendField(locator, this, "events", buffer, theEvents);
}
{
Identifiers theIdentifiers;
theIdentifiers = this.getIdentifiers();
strategy.appendField(locator, this, "identifiers", buffer,
theIdentifiers);
}
{
Memberships theMemberships;
theMemberships = this.getMemberships();
strategy.appendField(locator, this, "memberships", buffer,
theMemberships);
}
{
Relationships theRelationships;
theRelationships = this.getRelationships();
strategy.appendField(locator, this, "relationships", buffer,
theRelationships);
}
{
Revenues theRevenues;
theRevenues = this.getRevenues();
strategy.appendField(locator, this, "revenues", buffer, theRevenues);
}
{
Stocks theStocks;
theStocks = this.getStocks();
strategy.appendField(locator, this, "stocks", buffer, theStocks);
}
{
Vehicles theVehicles;
theVehicles = this.getVehicles();
strategy.appendField(locator, this, "vehicles", buffer, theVehicles);
}
{
OrganisationInfo theOrganisationInfo;
theOrganisationInfo = this.getOrganisationInfo();
strategy.appendField(locator, this, "organisationInfo", buffer,
theOrganisationInfo);
}
{
String theUsage;
theUsage = this.getUsage();
strategy.appendField(locator, this, "usage", buffer, theUsage);
}
{
String theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus);
}
{
String theOrganisationDetailsKey;
theOrganisationDetailsKey = this.getOrganisationDetailsKey();
strategy.appendField(locator, this, "organisationDetailsKey",
buffer, theOrganisationDetailsKey);
}
{
String theOrganisationDetailsKeyRef;
theOrganisationDetailsKeyRef = this.getOrganisationDetailsKeyRef();
strategy.appendField(locator, this, "organisationDetailsKeyRef",
buffer, theOrganisationDetailsKeyRef);
}
{
String theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType);
}
{
String theLabel;
theLabel = this.getLabel();
strategy.appendField(locator, this, "label", buffer, theLabel);
}
{
String theHref;
theHref = this.getHref();
strategy.appendField(locator, this, "href", buffer, theHref);
}
{
XMLGregorianCalendar theDateValidFrom;
theDateValidFrom = this.getDateValidFrom();
strategy.appendField(locator, this, "dateValidFrom", buffer,
theDateValidFrom);
}
{
XMLGregorianCalendar theDateValidTo;
theDateValidTo = this.getDateValidTo();
strategy.appendField(locator, this, "dateValidTo", buffer,
theDateValidTo);
}
{
DataQualityTypeList theDataQualityType;
theDataQualityType = this.getDataQualityType();
strategy.appendField(locator, this, "dataQualityType", buffer,
theDataQualityType);
}
{
XMLGregorianCalendar theValidFrom;
theValidFrom = this.getValidFrom();
strategy.appendField(locator, this, "validFrom", buffer,
theValidFrom);
}
{
XMLGregorianCalendar theValidTo;
theValidTo = this.getValidTo();
strategy.appendField(locator, this, "validTo", buffer, theValidTo);
}
{
String theLanguageCode;
theLanguageCode = this.getLanguageCode();
strategy.appendField(locator, this, "languageCode", buffer,
theLanguageCode);
}
return buffer;
}
/**
* Returns A Document representation of this instance that is not formatted.
*
* @return The Document representation for this instance.
*/
public org.w3c.dom.Document toDocument() {
return toDocument(false);
}
/**
* Returns A Document representation for this instance.
*
* @param prettyPrint
* True for pretty print, otherwise false
*
* @return The Document representation for this instance.
*/
public org.w3c.dom.Document toDocument(boolean prettyPrint) {
return DocumentUtilities.toDocument(toJAXBElement(), prettyPrint);
}
/**
* Returns JAXBElement for this instance.
*
* @return The JAXBElement for this instance.
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public JAXBElement> toJAXBElement() {
QName qualifiedName = STIXSchema.getQualifiedName(this);
return new JAXBElement(qualifiedName, OrganisationDetails.class, this);
}
/**
* Returns String representation of this instance that is not formatted.
*
* @return The String containing the XML mark-up.
*/
public String toXMLString() {
return toXMLString(false);
}
/**
* Returns XML String for JAXB Document Object Model object.
*
* @param prettyPrint
* True for pretty print, otherwise false
*
* @return The String containing the XML mark-up.
*/
public String toXMLString(boolean prettyPrint) {
return DocumentUtilities.toXMLString(toDocument(), prettyPrint);
}
/**
* Creates OrganisationDetails instance for XML String
*
* @param text
* XML String for the document
* @return The OrganisationDetails instance for the passed XML String
*/
public static OrganisationDetails fromXMLString(String text) {
JAXBContext jaxbContext;
try {
jaxbContext = JAXBContext.newInstance(OrganisationDetails.class
.getPackage().getName());
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
unmarshaller.setSchema(STIXSchema.getInstance().getSchema());
unmarshaller.setEventHandler(new ValidationEventHandler());
StreamSource streamSource = new StreamSource(new StringReader(text));
return (OrganisationDetails) unmarshaller.unmarshal(streamSource);
} catch (JAXBException e) {
throw new RuntimeException(e);
}
}
/**
* Validates the XML representation of this OrganisationDetails instance
* Returning true indicating a successful validation, false if not.
*
* @return boolean
*/
public boolean validate() {
return STIXSchema.getInstance().validate(toXMLString());
}
}