All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mitre.capec.capec_2.ContentHistory Maven / Gradle / Ivy

There is a newer version: 1.2.0.2
Show newest version
/**
 * 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 org.mitre.capec.capec_2;

import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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.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.XmlValue;
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;
import javax.xml.transform.stream.StreamSource;
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;

/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Submissions" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="Submission" maxOccurs="unbounded">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element name="Submitter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                             <element name="Submitter_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                             <element name="Submission_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *                             <element name="Submission_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                           </sequence>
 *                           <attribute name="Submission_Source">
 *                             <simpleType>
 *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                                 <whiteSpace value="collapse"/>
 *                                 <enumeration value="Externally_Mined"/>
 *                                 <enumeration value="NDA"/>
 *                                 <enumeration value="Internal_CAPEC_Team"/>
 *                                 <enumeration value="External_Submission"/>
 *                               </restriction>
 *                             </simpleType>
 *                           </attribute>
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="Contributions" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="Contribution" maxOccurs="unbounded">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element name="Contributor" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                             <element name="Contribution_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                             <element name="Contribution_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *                             <element name="Contribution_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                           </sequence>
 *                           <attribute name="Contribution_Mode">
 *                             <simpleType>
 *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                                 <whiteSpace value="collapse"/>
 *                                 <enumeration value="Content"/>
 *                                 <enumeration value="Feedback"/>
 *                               </restriction>
 *                             </simpleType>
 *                           </attribute>
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="Modifications" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="Modification" maxOccurs="unbounded">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element name="Modifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                             <element name="Modifier_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                             <element name="Modification_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *                             <element name="Modification_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                           </sequence>
 *                           <attribute name="Modification_Importance">
 *                             <simpleType>
 *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                                 <whiteSpace value="collapse"/>
 *                                 <enumeration value="Normal"/>
 *                                 <enumeration value="Critical"/>
 *                               </restriction>
 *                             </simpleType>
 *                           </attribute>
 *                           <attribute name="Modification_Source">
 *                             <simpleType>
 *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                                 <whiteSpace value="collapse"/>
 *                                 <enumeration value="Internal"/>
 *                                 <enumeration value="External"/>
 *                               </restriction>
 *                             </simpleType>
 *                           </attribute>
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="Previous_Entry_Names" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="Previous_Entry_Name" maxOccurs="unbounded">
 *                     <complexType>
 *                       <simpleContent>
 *                         <extension base="<http://www.w3.org/2001/XMLSchema>string">
 *                           <attribute name="Name_Change_Date" use="required" type="{http://www.w3.org/2001/XMLSchema}date" />
 *                         </extension>
 *                       </simpleContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "submissions", "contributions", "modifications", "previousEntryNames" }) @XmlRootElement(name = "Content_History") public class ContentHistory implements Equals, HashCode, ToString { @XmlElement(name = "Submissions") protected ContentHistory.Submissions submissions; @XmlElement(name = "Contributions") protected ContentHistory.Contributions contributions; @XmlElement(name = "Modifications") protected ContentHistory.Modifications modifications; @XmlElement(name = "Previous_Entry_Names") protected ContentHistory.PreviousEntryNames previousEntryNames; /** * Default no-arg constructor * */ public ContentHistory() { super(); } /** * Fully-initialising value constructor * */ public ContentHistory(final ContentHistory.Submissions submissions, final ContentHistory.Contributions contributions, final ContentHistory.Modifications modifications, final ContentHistory.PreviousEntryNames previousEntryNames) { this.submissions = submissions; this.contributions = contributions; this.modifications = modifications; this.previousEntryNames = previousEntryNames; } /** * Gets the value of the submissions property. * * @return * possible object is * {@link ContentHistory.Submissions } * */ public ContentHistory.Submissions getSubmissions() { return submissions; } /** * Sets the value of the submissions property. * * @param value * allowed object is * {@link ContentHistory.Submissions } * */ public void setSubmissions(ContentHistory.Submissions value) { this.submissions = value; } /** * Gets the value of the contributions property. * * @return * possible object is * {@link ContentHistory.Contributions } * */ public ContentHistory.Contributions getContributions() { return contributions; } /** * Sets the value of the contributions property. * * @param value * allowed object is * {@link ContentHistory.Contributions } * */ public void setContributions(ContentHistory.Contributions value) { this.contributions = value; } /** * Gets the value of the modifications property. * * @return * possible object is * {@link ContentHistory.Modifications } * */ public ContentHistory.Modifications getModifications() { return modifications; } /** * Sets the value of the modifications property. * * @param value * allowed object is * {@link ContentHistory.Modifications } * */ public void setModifications(ContentHistory.Modifications value) { this.modifications = value; } /** * Gets the value of the previousEntryNames property. * * @return * possible object is * {@link ContentHistory.PreviousEntryNames } * */ public ContentHistory.PreviousEntryNames getPreviousEntryNames() { return previousEntryNames; } /** * Sets the value of the previousEntryNames property. * * @param value * allowed object is * {@link ContentHistory.PreviousEntryNames } * */ public void setPreviousEntryNames(ContentHistory.PreviousEntryNames value) { this.previousEntryNames = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory)) { return false; } if (this == object) { return true; } final ContentHistory that = ((ContentHistory) object); { ContentHistory.Submissions lhsSubmissions; lhsSubmissions = this.getSubmissions(); ContentHistory.Submissions rhsSubmissions; rhsSubmissions = that.getSubmissions(); if (!strategy.equals(LocatorUtils.property(thisLocator, "submissions", lhsSubmissions), LocatorUtils.property( thatLocator, "submissions", rhsSubmissions), lhsSubmissions, rhsSubmissions)) { return false; } } { ContentHistory.Contributions lhsContributions; lhsContributions = this.getContributions(); ContentHistory.Contributions rhsContributions; rhsContributions = that.getContributions(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributions", lhsContributions), LocatorUtils.property( thatLocator, "contributions", rhsContributions), lhsContributions, rhsContributions)) { return false; } } { ContentHistory.Modifications lhsModifications; lhsModifications = this.getModifications(); ContentHistory.Modifications rhsModifications; rhsModifications = that.getModifications(); if (!strategy.equals(LocatorUtils.property(thisLocator, "modifications", lhsModifications), LocatorUtils.property( thatLocator, "modifications", rhsModifications), lhsModifications, rhsModifications)) { return false; } } { ContentHistory.PreviousEntryNames lhsPreviousEntryNames; lhsPreviousEntryNames = this.getPreviousEntryNames(); ContentHistory.PreviousEntryNames rhsPreviousEntryNames; rhsPreviousEntryNames = that.getPreviousEntryNames(); if (!strategy.equals(LocatorUtils.property(thisLocator, "previousEntryNames", lhsPreviousEntryNames), LocatorUtils .property(thatLocator, "previousEntryNames", rhsPreviousEntryNames), lhsPreviousEntryNames, rhsPreviousEntryNames)) { 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; { ContentHistory.Submissions theSubmissions; theSubmissions = this.getSubmissions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "submissions", theSubmissions), currentHashCode, theSubmissions); } { ContentHistory.Contributions theContributions; theContributions = this.getContributions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contributions", theContributions), currentHashCode, theContributions); } { ContentHistory.Modifications theModifications; theModifications = this.getModifications(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modifications", theModifications), currentHashCode, theModifications); } { ContentHistory.PreviousEntryNames thePreviousEntryNames; thePreviousEntryNames = this.getPreviousEntryNames(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "previousEntryNames", thePreviousEntryNames), currentHashCode, thePreviousEntryNames); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory withSubmissions(ContentHistory.Submissions value) { setSubmissions(value); return this; } public ContentHistory withContributions(ContentHistory.Contributions value) { setContributions(value); return this; } public ContentHistory withModifications(ContentHistory.Modifications value) { setModifications(value); return this; } public ContentHistory withPreviousEntryNames( ContentHistory.PreviousEntryNames value) { setPreviousEntryNames(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) { { ContentHistory.Submissions theSubmissions; theSubmissions = this.getSubmissions(); strategy.appendField(locator, this, "submissions", buffer, theSubmissions); } { ContentHistory.Contributions theContributions; theContributions = this.getContributions(); strategy.appendField(locator, this, "contributions", buffer, theContributions); } { ContentHistory.Modifications theModifications; theModifications = this.getModifications(); strategy.appendField(locator, this, "modifications", buffer, theModifications); } { ContentHistory.PreviousEntryNames thePreviousEntryNames; thePreviousEntryNames = this.getPreviousEntryNames(); strategy.appendField(locator, this, "previousEntryNames", buffer, thePreviousEntryNames); } return buffer; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

	 * <complexType>
	 *   <complexContent>
	 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *       <sequence>
	 *         <element name="Contribution" maxOccurs="unbounded">
	 *           <complexType>
	 *             <complexContent>
	 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *                 <sequence>
	 *                   <element name="Contributor" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                   <element name="Contribution_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                   <element name="Contribution_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
	 *                   <element name="Contribution_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                 </sequence>
	 *                 <attribute name="Contribution_Mode">
	 *                   <simpleType>
	 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
	 *                       <whiteSpace value="collapse"/>
	 *                       <enumeration value="Content"/>
	 *                       <enumeration value="Feedback"/>
	 *                     </restriction>
	 *                   </simpleType>
	 *                 </attribute>
	 *               </restriction>
	 *             </complexContent>
	 *           </complexType>
	 *         </element>
	 *       </sequence>
	 *     </restriction>
	 *   </complexContent>
	 * </complexType>
	 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "contributions" }) public static class Contributions implements Equals, HashCode, ToString { @XmlElement(name = "Contribution", required = true) protected List contributions; /** * Default no-arg constructor * */ public Contributions() { super(); } /** * Fully-initialising value constructor * */ public Contributions( final List contributions) { this.contributions = contributions; } /** * Gets the value of the contributions 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 contributions property. * *

* For example, to add a new item, do as follows: *

		 *    getContributions().add(newItem);
		 * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ContentHistory.Contributions.Contribution } * * */ public List getContributions() { if (contributions == null) { contributions = new ArrayList(); } return this.contributions; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.Contributions)) { return false; } if (this == object) { return true; } final ContentHistory.Contributions that = ((ContentHistory.Contributions) object); { List lhsContributions; lhsContributions = (((this.contributions != null) && (!this.contributions .isEmpty())) ? this.getContributions() : null); List rhsContributions; rhsContributions = (((that.contributions != null) && (!that.contributions .isEmpty())) ? that.getContributions() : null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributions", lhsContributions), LocatorUtils .property(thatLocator, "contributions", rhsContributions), lhsContributions, rhsContributions)) { 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; { List theContributions; theContributions = (((this.contributions != null) && (!this.contributions .isEmpty())) ? this.getContributions() : null); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "contributions", theContributions), currentHashCode, theContributions); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.Contributions withContributions( ContentHistory.Contributions.Contribution... values) { if (values != null) { for (ContentHistory.Contributions.Contribution value : values) { getContributions().add(value); } } return this; } public ContentHistory.Contributions withContributions( Collection values) { if (values != null) { getContributions().addAll(values); } 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) { { List theContributions; theContributions = (((this.contributions != null) && (!this.contributions .isEmpty())) ? this.getContributions() : null); strategy.appendField(locator, this, "contributions", buffer, theContributions); } return buffer; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

		 * <complexType>
		 *   <complexContent>
		 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
		 *       <sequence>
		 *         <element name="Contributor" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *         <element name="Contribution_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *         <element name="Contribution_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
		 *         <element name="Contribution_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *       </sequence>
		 *       <attribute name="Contribution_Mode">
		 *         <simpleType>
		 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
		 *             <whiteSpace value="collapse"/>
		 *             <enumeration value="Content"/>
		 *             <enumeration value="Feedback"/>
		 *           </restriction>
		 *         </simpleType>
		 *       </attribute>
		 *     </restriction>
		 *   </complexContent>
		 * </complexType>
		 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "contributor", "contributionOrganization", "contributionDate", "contributionComment" }) public static class Contribution implements Equals, HashCode, ToString { @XmlElement(name = "Contributor") protected String contributor; @XmlElement(name = "Contribution_Organization") protected String contributionOrganization; @XmlElement(name = "Contribution_Date") @XmlSchemaType(name = "date") protected XMLGregorianCalendar contributionDate; @XmlElement(name = "Contribution_Comment") protected String contributionComment; @XmlAttribute(name = "Contribution_Mode") protected String contributionMode; /** * Default no-arg constructor * */ public Contribution() { super(); } /** * Fully-initialising value constructor * */ public Contribution(final String contributor, final String contributionOrganization, final XMLGregorianCalendar contributionDate, final String contributionComment, final String contributionMode) { this.contributor = contributor; this.contributionOrganization = contributionOrganization; this.contributionDate = contributionDate; this.contributionComment = contributionComment; this.contributionMode = contributionMode; } /** * Gets the value of the contributor property. * * @return * possible object is * {@link String } * */ public String getContributor() { return contributor; } /** * Sets the value of the contributor property. * * @param value * allowed object is * {@link String } * */ public void setContributor(String value) { this.contributor = value; } /** * Gets the value of the contributionOrganization property. * * @return * possible object is * {@link String } * */ public String getContributionOrganization() { return contributionOrganization; } /** * Sets the value of the contributionOrganization property. * * @param value * allowed object is * {@link String } * */ public void setContributionOrganization(String value) { this.contributionOrganization = value; } /** * Gets the value of the contributionDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getContributionDate() { return contributionDate; } /** * Sets the value of the contributionDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setContributionDate(XMLGregorianCalendar value) { this.contributionDate = value; } /** * Gets the value of the contributionComment property. * * @return * possible object is * {@link String } * */ public String getContributionComment() { return contributionComment; } /** * Sets the value of the contributionComment property. * * @param value * allowed object is * {@link String } * */ public void setContributionComment(String value) { this.contributionComment = value; } /** * Gets the value of the contributionMode property. * * @return * possible object is * {@link String } * */ public String getContributionMode() { return contributionMode; } /** * Sets the value of the contributionMode property. * * @param value * allowed object is * {@link String } * */ public void setContributionMode(String value) { this.contributionMode = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.Contributions.Contribution)) { return false; } if (this == object) { return true; } final ContentHistory.Contributions.Contribution that = ((ContentHistory.Contributions.Contribution) object); { String lhsContributor; lhsContributor = this.getContributor(); String rhsContributor; rhsContributor = that.getContributor(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributor", lhsContributor), LocatorUtils .property(thatLocator, "contributor", rhsContributor), lhsContributor, rhsContributor)) { return false; } } { String lhsContributionOrganization; lhsContributionOrganization = this .getContributionOrganization(); String rhsContributionOrganization; rhsContributionOrganization = that .getContributionOrganization(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributionOrganization", lhsContributionOrganization), LocatorUtils .property(thatLocator, "contributionOrganization", rhsContributionOrganization), lhsContributionOrganization, rhsContributionOrganization)) { return false; } } { XMLGregorianCalendar lhsContributionDate; lhsContributionDate = this.getContributionDate(); XMLGregorianCalendar rhsContributionDate; rhsContributionDate = that.getContributionDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributionDate", lhsContributionDate), LocatorUtils.property(thatLocator, "contributionDate", rhsContributionDate), lhsContributionDate, rhsContributionDate)) { return false; } } { String lhsContributionComment; lhsContributionComment = this.getContributionComment(); String rhsContributionComment; rhsContributionComment = that.getContributionComment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributionComment", lhsContributionComment), LocatorUtils.property(thatLocator, "contributionComment", rhsContributionComment), lhsContributionComment, rhsContributionComment)) { return false; } } { String lhsContributionMode; lhsContributionMode = this.getContributionMode(); String rhsContributionMode; rhsContributionMode = that.getContributionMode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributionMode", lhsContributionMode), LocatorUtils.property(thatLocator, "contributionMode", rhsContributionMode), lhsContributionMode, rhsContributionMode)) { 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; { String theContributor; theContributor = this.getContributor(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "contributor", theContributor), currentHashCode, theContributor); } { String theContributionOrganization; theContributionOrganization = this .getContributionOrganization(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "contributionOrganization", theContributionOrganization), currentHashCode, theContributionOrganization); } { XMLGregorianCalendar theContributionDate; theContributionDate = this.getContributionDate(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "contributionDate", theContributionDate), currentHashCode, theContributionDate); } { String theContributionComment; theContributionComment = this.getContributionComment(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "contributionComment", theContributionComment), currentHashCode, theContributionComment); } { String theContributionMode; theContributionMode = this.getContributionMode(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "contributionMode", theContributionMode), currentHashCode, theContributionMode); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.Contributions.Contribution withContributor( String value) { setContributor(value); return this; } public ContentHistory.Contributions.Contribution withContributionOrganization( String value) { setContributionOrganization(value); return this; } public ContentHistory.Contributions.Contribution withContributionDate( XMLGregorianCalendar value) { setContributionDate(value); return this; } public ContentHistory.Contributions.Contribution withContributionComment( String value) { setContributionComment(value); return this; } public ContentHistory.Contributions.Contribution withContributionMode( String value) { setContributionMode(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) { { String theContributor; theContributor = this.getContributor(); strategy.appendField(locator, this, "contributor", buffer, theContributor); } { String theContributionOrganization; theContributionOrganization = this .getContributionOrganization(); strategy.appendField(locator, this, "contributionOrganization", buffer, theContributionOrganization); } { XMLGregorianCalendar theContributionDate; theContributionDate = this.getContributionDate(); strategy.appendField(locator, this, "contributionDate", buffer, theContributionDate); } { String theContributionComment; theContributionComment = this.getContributionComment(); strategy.appendField(locator, this, "contributionComment", buffer, theContributionComment); } { String theContributionMode; theContributionMode = this.getContributionMode(); strategy.appendField(locator, this, "contributionMode", buffer, theContributionMode); } return buffer; } } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

	 * <complexType>
	 *   <complexContent>
	 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *       <sequence>
	 *         <element name="Modification" maxOccurs="unbounded">
	 *           <complexType>
	 *             <complexContent>
	 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *                 <sequence>
	 *                   <element name="Modifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                   <element name="Modifier_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                   <element name="Modification_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
	 *                   <element name="Modification_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                 </sequence>
	 *                 <attribute name="Modification_Importance">
	 *                   <simpleType>
	 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
	 *                       <whiteSpace value="collapse"/>
	 *                       <enumeration value="Normal"/>
	 *                       <enumeration value="Critical"/>
	 *                     </restriction>
	 *                   </simpleType>
	 *                 </attribute>
	 *                 <attribute name="Modification_Source">
	 *                   <simpleType>
	 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
	 *                       <whiteSpace value="collapse"/>
	 *                       <enumeration value="Internal"/>
	 *                       <enumeration value="External"/>
	 *                     </restriction>
	 *                   </simpleType>
	 *                 </attribute>
	 *               </restriction>
	 *             </complexContent>
	 *           </complexType>
	 *         </element>
	 *       </sequence>
	 *     </restriction>
	 *   </complexContent>
	 * </complexType>
	 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "modifications" }) public static class Modifications implements Equals, HashCode, ToString { @XmlElement(name = "Modification", required = true) protected List modifications; /** * Default no-arg constructor * */ public Modifications() { super(); } /** * Fully-initialising value constructor * */ public Modifications( final List modifications) { this.modifications = modifications; } /** * Gets the value of the modifications 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 modifications property. * *

* For example, to add a new item, do as follows: *

		 *    getModifications().add(newItem);
		 * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ContentHistory.Modifications.Modification } * * */ public List getModifications() { if (modifications == null) { modifications = new ArrayList(); } return this.modifications; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.Modifications)) { return false; } if (this == object) { return true; } final ContentHistory.Modifications that = ((ContentHistory.Modifications) object); { List lhsModifications; lhsModifications = (((this.modifications != null) && (!this.modifications .isEmpty())) ? this.getModifications() : null); List rhsModifications; rhsModifications = (((that.modifications != null) && (!that.modifications .isEmpty())) ? that.getModifications() : null); if (!strategy.equals(LocatorUtils.property(thisLocator, "modifications", lhsModifications), LocatorUtils .property(thatLocator, "modifications", rhsModifications), lhsModifications, rhsModifications)) { 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; { List theModifications; theModifications = (((this.modifications != null) && (!this.modifications .isEmpty())) ? this.getModifications() : null); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "modifications", theModifications), currentHashCode, theModifications); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.Modifications withModifications( ContentHistory.Modifications.Modification... values) { if (values != null) { for (ContentHistory.Modifications.Modification value : values) { getModifications().add(value); } } return this; } public ContentHistory.Modifications withModifications( Collection values) { if (values != null) { getModifications().addAll(values); } 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) { { List theModifications; theModifications = (((this.modifications != null) && (!this.modifications .isEmpty())) ? this.getModifications() : null); strategy.appendField(locator, this, "modifications", buffer, theModifications); } return buffer; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

		 * <complexType>
		 *   <complexContent>
		 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
		 *       <sequence>
		 *         <element name="Modifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *         <element name="Modifier_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *         <element name="Modification_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
		 *         <element name="Modification_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *       </sequence>
		 *       <attribute name="Modification_Importance">
		 *         <simpleType>
		 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
		 *             <whiteSpace value="collapse"/>
		 *             <enumeration value="Normal"/>
		 *             <enumeration value="Critical"/>
		 *           </restriction>
		 *         </simpleType>
		 *       </attribute>
		 *       <attribute name="Modification_Source">
		 *         <simpleType>
		 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
		 *             <whiteSpace value="collapse"/>
		 *             <enumeration value="Internal"/>
		 *             <enumeration value="External"/>
		 *           </restriction>
		 *         </simpleType>
		 *       </attribute>
		 *     </restriction>
		 *   </complexContent>
		 * </complexType>
		 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "modifier", "modifierOrganization", "modificationDate", "modificationComment" }) public static class Modification implements Equals, HashCode, ToString { @XmlElement(name = "Modifier") protected String modifier; @XmlElement(name = "Modifier_Organization") protected String modifierOrganization; @XmlElement(name = "Modification_Date") @XmlSchemaType(name = "date") protected XMLGregorianCalendar modificationDate; @XmlElement(name = "Modification_Comment") protected String modificationComment; @XmlAttribute(name = "Modification_Importance") protected String modificationImportance; @XmlAttribute(name = "Modification_Source") protected String modificationSource; /** * Default no-arg constructor * */ public Modification() { super(); } /** * Fully-initialising value constructor * */ public Modification(final String modifier, final String modifierOrganization, final XMLGregorianCalendar modificationDate, final String modificationComment, final String modificationImportance, final String modificationSource) { this.modifier = modifier; this.modifierOrganization = modifierOrganization; this.modificationDate = modificationDate; this.modificationComment = modificationComment; this.modificationImportance = modificationImportance; this.modificationSource = modificationSource; } /** * Gets the value of the modifier property. * * @return * possible object is * {@link String } * */ public String getModifier() { return modifier; } /** * Sets the value of the modifier property. * * @param value * allowed object is * {@link String } * */ public void setModifier(String value) { this.modifier = value; } /** * Gets the value of the modifierOrganization property. * * @return * possible object is * {@link String } * */ public String getModifierOrganization() { return modifierOrganization; } /** * Sets the value of the modifierOrganization property. * * @param value * allowed object is * {@link String } * */ public void setModifierOrganization(String value) { this.modifierOrganization = value; } /** * Gets the value of the modificationDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getModificationDate() { return modificationDate; } /** * Sets the value of the modificationDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setModificationDate(XMLGregorianCalendar value) { this.modificationDate = value; } /** * Gets the value of the modificationComment property. * * @return * possible object is * {@link String } * */ public String getModificationComment() { return modificationComment; } /** * Sets the value of the modificationComment property. * * @param value * allowed object is * {@link String } * */ public void setModificationComment(String value) { this.modificationComment = value; } /** * Gets the value of the modificationImportance property. * * @return * possible object is * {@link String } * */ public String getModificationImportance() { return modificationImportance; } /** * Sets the value of the modificationImportance property. * * @param value * allowed object is * {@link String } * */ public void setModificationImportance(String value) { this.modificationImportance = value; } /** * Gets the value of the modificationSource property. * * @return * possible object is * {@link String } * */ public String getModificationSource() { return modificationSource; } /** * Sets the value of the modificationSource property. * * @param value * allowed object is * {@link String } * */ public void setModificationSource(String value) { this.modificationSource = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.Modifications.Modification)) { return false; } if (this == object) { return true; } final ContentHistory.Modifications.Modification that = ((ContentHistory.Modifications.Modification) object); { String lhsModifier; lhsModifier = this.getModifier(); String rhsModifier; rhsModifier = that.getModifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "modifier", lhsModifier), LocatorUtils.property( thatLocator, "modifier", rhsModifier), lhsModifier, rhsModifier)) { return false; } } { String lhsModifierOrganization; lhsModifierOrganization = this.getModifierOrganization(); String rhsModifierOrganization; rhsModifierOrganization = that.getModifierOrganization(); if (!strategy.equals(LocatorUtils.property(thisLocator, "modifierOrganization", lhsModifierOrganization), LocatorUtils.property(thatLocator, "modifierOrganization", rhsModifierOrganization), lhsModifierOrganization, rhsModifierOrganization)) { return false; } } { XMLGregorianCalendar lhsModificationDate; lhsModificationDate = this.getModificationDate(); XMLGregorianCalendar rhsModificationDate; rhsModificationDate = that.getModificationDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "modificationDate", lhsModificationDate), LocatorUtils.property(thatLocator, "modificationDate", rhsModificationDate), lhsModificationDate, rhsModificationDate)) { return false; } } { String lhsModificationComment; lhsModificationComment = this.getModificationComment(); String rhsModificationComment; rhsModificationComment = that.getModificationComment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "modificationComment", lhsModificationComment), LocatorUtils.property(thatLocator, "modificationComment", rhsModificationComment), lhsModificationComment, rhsModificationComment)) { return false; } } { String lhsModificationImportance; lhsModificationImportance = this .getModificationImportance(); String rhsModificationImportance; rhsModificationImportance = that .getModificationImportance(); if (!strategy.equals(LocatorUtils .property(thisLocator, "modificationImportance", lhsModificationImportance), LocatorUtils .property(thatLocator, "modificationImportance", rhsModificationImportance), lhsModificationImportance, rhsModificationImportance)) { return false; } } { String lhsModificationSource; lhsModificationSource = this.getModificationSource(); String rhsModificationSource; rhsModificationSource = that.getModificationSource(); if (!strategy.equals(LocatorUtils.property(thisLocator, "modificationSource", lhsModificationSource), LocatorUtils .property(thatLocator, "modificationSource", rhsModificationSource), lhsModificationSource, rhsModificationSource)) { 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; { String theModifier; theModifier = this.getModifier(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "modifier", theModifier), currentHashCode, theModifier); } { String theModifierOrganization; theModifierOrganization = this.getModifierOrganization(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "modifierOrganization", theModifierOrganization), currentHashCode, theModifierOrganization); } { XMLGregorianCalendar theModificationDate; theModificationDate = this.getModificationDate(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "modificationDate", theModificationDate), currentHashCode, theModificationDate); } { String theModificationComment; theModificationComment = this.getModificationComment(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "modificationComment", theModificationComment), currentHashCode, theModificationComment); } { String theModificationImportance; theModificationImportance = this .getModificationImportance(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "modificationImportance", theModificationImportance), currentHashCode, theModificationImportance); } { String theModificationSource; theModificationSource = this.getModificationSource(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "modificationSource", theModificationSource), currentHashCode, theModificationSource); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.Modifications.Modification withModifier( String value) { setModifier(value); return this; } public ContentHistory.Modifications.Modification withModifierOrganization( String value) { setModifierOrganization(value); return this; } public ContentHistory.Modifications.Modification withModificationDate( XMLGregorianCalendar value) { setModificationDate(value); return this; } public ContentHistory.Modifications.Modification withModificationComment( String value) { setModificationComment(value); return this; } public ContentHistory.Modifications.Modification withModificationImportance( String value) { setModificationImportance(value); return this; } public ContentHistory.Modifications.Modification withModificationSource( String value) { setModificationSource(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) { { String theModifier; theModifier = this.getModifier(); strategy.appendField(locator, this, "modifier", buffer, theModifier); } { String theModifierOrganization; theModifierOrganization = this.getModifierOrganization(); strategy.appendField(locator, this, "modifierOrganization", buffer, theModifierOrganization); } { XMLGregorianCalendar theModificationDate; theModificationDate = this.getModificationDate(); strategy.appendField(locator, this, "modificationDate", buffer, theModificationDate); } { String theModificationComment; theModificationComment = this.getModificationComment(); strategy.appendField(locator, this, "modificationComment", buffer, theModificationComment); } { String theModificationImportance; theModificationImportance = this .getModificationImportance(); strategy.appendField(locator, this, "modificationImportance", buffer, theModificationImportance); } { String theModificationSource; theModificationSource = this.getModificationSource(); strategy.appendField(locator, this, "modificationSource", buffer, theModificationSource); } return buffer; } } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

	 * <complexType>
	 *   <complexContent>
	 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *       <sequence>
	 *         <element name="Previous_Entry_Name" maxOccurs="unbounded">
	 *           <complexType>
	 *             <simpleContent>
	 *               <extension base="<http://www.w3.org/2001/XMLSchema>string">
	 *                 <attribute name="Name_Change_Date" use="required" type="{http://www.w3.org/2001/XMLSchema}date" />
	 *               </extension>
	 *             </simpleContent>
	 *           </complexType>
	 *         </element>
	 *       </sequence>
	 *     </restriction>
	 *   </complexContent>
	 * </complexType>
	 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "previousEntryNames" }) public static class PreviousEntryNames implements Equals, HashCode, ToString { @XmlElement(name = "Previous_Entry_Name", required = true) protected List previousEntryNames; /** * Default no-arg constructor * */ public PreviousEntryNames() { super(); } /** * Fully-initialising value constructor * */ public PreviousEntryNames( final List previousEntryNames) { this.previousEntryNames = previousEntryNames; } /** * Gets the value of the previousEntryNames 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 previousEntryNames property. * *

* For example, to add a new item, do as follows: *

		 *    getPreviousEntryNames().add(newItem);
		 * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ContentHistory.PreviousEntryNames.PreviousEntryName } * * */ public List getPreviousEntryNames() { if (previousEntryNames == null) { previousEntryNames = new ArrayList(); } return this.previousEntryNames; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.PreviousEntryNames)) { return false; } if (this == object) { return true; } final ContentHistory.PreviousEntryNames that = ((ContentHistory.PreviousEntryNames) object); { List lhsPreviousEntryNames; lhsPreviousEntryNames = (((this.previousEntryNames != null) && (!this.previousEntryNames .isEmpty())) ? this.getPreviousEntryNames() : null); List rhsPreviousEntryNames; rhsPreviousEntryNames = (((that.previousEntryNames != null) && (!that.previousEntryNames .isEmpty())) ? that.getPreviousEntryNames() : null); if (!strategy.equals(LocatorUtils.property(thisLocator, "previousEntryNames", lhsPreviousEntryNames), LocatorUtils.property(thatLocator, "previousEntryNames", rhsPreviousEntryNames), lhsPreviousEntryNames, rhsPreviousEntryNames)) { 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; { List thePreviousEntryNames; thePreviousEntryNames = (((this.previousEntryNames != null) && (!this.previousEntryNames .isEmpty())) ? this.getPreviousEntryNames() : null); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "previousEntryNames", thePreviousEntryNames), currentHashCode, thePreviousEntryNames); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.PreviousEntryNames withPreviousEntryNames( ContentHistory.PreviousEntryNames.PreviousEntryName... values) { if (values != null) { for (ContentHistory.PreviousEntryNames.PreviousEntryName value : values) { getPreviousEntryNames().add(value); } } return this; } public ContentHistory.PreviousEntryNames withPreviousEntryNames( Collection values) { if (values != null) { getPreviousEntryNames().addAll(values); } 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) { { List thePreviousEntryNames; thePreviousEntryNames = (((this.previousEntryNames != null) && (!this.previousEntryNames .isEmpty())) ? this.getPreviousEntryNames() : null); strategy.appendField(locator, this, "previousEntryNames", buffer, thePreviousEntryNames); } return buffer; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

		 * <complexType>
		 *   <simpleContent>
		 *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
		 *       <attribute name="Name_Change_Date" use="required" type="{http://www.w3.org/2001/XMLSchema}date" />
		 *     </extension>
		 *   </simpleContent>
		 * </complexType>
		 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class PreviousEntryName implements Equals, HashCode, ToString { @XmlValue protected String value; @XmlAttribute(name = "Name_Change_Date", required = true) @XmlSchemaType(name = "date") protected XMLGregorianCalendar nameChangeDate; /** * Default no-arg constructor * */ public PreviousEntryName() { super(); } /** * Fully-initialising value constructor * */ public PreviousEntryName(final String value, final XMLGregorianCalendar nameChangeDate) { this.value = value; this.nameChangeDate = nameChangeDate; } /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Gets the value of the nameChangeDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getNameChangeDate() { return nameChangeDate; } /** * Sets the value of the nameChangeDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setNameChangeDate(XMLGregorianCalendar value) { this.nameChangeDate = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.PreviousEntryNames.PreviousEntryName)) { return false; } if (this == object) { return true; } final ContentHistory.PreviousEntryNames.PreviousEntryName that = ((ContentHistory.PreviousEntryNames.PreviousEntryName) object); { String lhsValue; lhsValue = this.getValue(); String rhsValue; rhsValue = that.getValue(); if (!strategy .equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property( thatLocator, "value", rhsValue), lhsValue, rhsValue)) { return false; } } { XMLGregorianCalendar lhsNameChangeDate; lhsNameChangeDate = this.getNameChangeDate(); XMLGregorianCalendar rhsNameChangeDate; rhsNameChangeDate = that.getNameChangeDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "nameChangeDate", lhsNameChangeDate), LocatorUtils .property(thatLocator, "nameChangeDate", rhsNameChangeDate), lhsNameChangeDate, rhsNameChangeDate)) { 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; { String theValue; theValue = this.getValue(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue); } { XMLGregorianCalendar theNameChangeDate; theNameChangeDate = this.getNameChangeDate(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "nameChangeDate", theNameChangeDate), currentHashCode, theNameChangeDate); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.PreviousEntryNames.PreviousEntryName withValue( String value) { setValue(value); return this; } public ContentHistory.PreviousEntryNames.PreviousEntryName withNameChangeDate( XMLGregorianCalendar value) { setNameChangeDate(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) { { String theValue; theValue = this.getValue(); strategy.appendField(locator, this, "value", buffer, theValue); } { XMLGregorianCalendar theNameChangeDate; theNameChangeDate = this.getNameChangeDate(); strategy.appendField(locator, this, "nameChangeDate", buffer, theNameChangeDate); } return buffer; } } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

	 * <complexType>
	 *   <complexContent>
	 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *       <sequence>
	 *         <element name="Submission" maxOccurs="unbounded">
	 *           <complexType>
	 *             <complexContent>
	 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *                 <sequence>
	 *                   <element name="Submitter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                   <element name="Submitter_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                   <element name="Submission_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
	 *                   <element name="Submission_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
	 *                 </sequence>
	 *                 <attribute name="Submission_Source">
	 *                   <simpleType>
	 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
	 *                       <whiteSpace value="collapse"/>
	 *                       <enumeration value="Externally_Mined"/>
	 *                       <enumeration value="NDA"/>
	 *                       <enumeration value="Internal_CAPEC_Team"/>
	 *                       <enumeration value="External_Submission"/>
	 *                     </restriction>
	 *                   </simpleType>
	 *                 </attribute>
	 *               </restriction>
	 *             </complexContent>
	 *           </complexType>
	 *         </element>
	 *       </sequence>
	 *     </restriction>
	 *   </complexContent>
	 * </complexType>
	 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "submissions" }) public static class Submissions implements Equals, HashCode, ToString { @XmlElement(name = "Submission", required = true) protected List submissions; /** * Default no-arg constructor * */ public Submissions() { super(); } /** * Fully-initialising value constructor * */ public Submissions( final List submissions) { this.submissions = submissions; } /** * Gets the value of the submissions 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 submissions property. * *

* For example, to add a new item, do as follows: *

		 *    getSubmissions().add(newItem);
		 * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ContentHistory.Submissions.Submission } * * */ public List getSubmissions() { if (submissions == null) { submissions = new ArrayList(); } return this.submissions; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.Submissions)) { return false; } if (this == object) { return true; } final ContentHistory.Submissions that = ((ContentHistory.Submissions) object); { List lhsSubmissions; lhsSubmissions = (((this.submissions != null) && (!this.submissions .isEmpty())) ? this.getSubmissions() : null); List rhsSubmissions; rhsSubmissions = (((that.submissions != null) && (!that.submissions .isEmpty())) ? that.getSubmissions() : null); if (!strategy.equals(LocatorUtils.property(thisLocator, "submissions", lhsSubmissions), LocatorUtils.property( thatLocator, "submissions", rhsSubmissions), lhsSubmissions, rhsSubmissions)) { 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; { List theSubmissions; theSubmissions = (((this.submissions != null) && (!this.submissions .isEmpty())) ? this.getSubmissions() : null); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "submissions", theSubmissions), currentHashCode, theSubmissions); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.Submissions withSubmissions( ContentHistory.Submissions.Submission... values) { if (values != null) { for (ContentHistory.Submissions.Submission value : values) { getSubmissions().add(value); } } return this; } public ContentHistory.Submissions withSubmissions( Collection values) { if (values != null) { getSubmissions().addAll(values); } 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) { { List theSubmissions; theSubmissions = (((this.submissions != null) && (!this.submissions .isEmpty())) ? this.getSubmissions() : null); strategy.appendField(locator, this, "submissions", buffer, theSubmissions); } return buffer; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

		 * <complexType>
		 *   <complexContent>
		 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
		 *       <sequence>
		 *         <element name="Submitter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *         <element name="Submitter_Organization" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *         <element name="Submission_Date" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
		 *         <element name="Submission_Comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
		 *       </sequence>
		 *       <attribute name="Submission_Source">
		 *         <simpleType>
		 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
		 *             <whiteSpace value="collapse"/>
		 *             <enumeration value="Externally_Mined"/>
		 *             <enumeration value="NDA"/>
		 *             <enumeration value="Internal_CAPEC_Team"/>
		 *             <enumeration value="External_Submission"/>
		 *           </restriction>
		 *         </simpleType>
		 *       </attribute>
		 *     </restriction>
		 *   </complexContent>
		 * </complexType>
		 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "submitter", "submitterOrganization", "submissionDate", "submissionComment" }) public static class Submission implements Equals, HashCode, ToString { @XmlElement(name = "Submitter") protected String submitter; @XmlElement(name = "Submitter_Organization") protected String submitterOrganization; @XmlElement(name = "Submission_Date") @XmlSchemaType(name = "date") protected XMLGregorianCalendar submissionDate; @XmlElement(name = "Submission_Comment") protected String submissionComment; @XmlAttribute(name = "Submission_Source") protected String submissionSource; /** * Default no-arg constructor * */ public Submission() { super(); } /** * Fully-initialising value constructor * */ public Submission(final String submitter, final String submitterOrganization, final XMLGregorianCalendar submissionDate, final String submissionComment, final String submissionSource) { this.submitter = submitter; this.submitterOrganization = submitterOrganization; this.submissionDate = submissionDate; this.submissionComment = submissionComment; this.submissionSource = submissionSource; } /** * Gets the value of the submitter property. * * @return * possible object is * {@link String } * */ public String getSubmitter() { return submitter; } /** * Sets the value of the submitter property. * * @param value * allowed object is * {@link String } * */ public void setSubmitter(String value) { this.submitter = value; } /** * Gets the value of the submitterOrganization property. * * @return * possible object is * {@link String } * */ public String getSubmitterOrganization() { return submitterOrganization; } /** * Sets the value of the submitterOrganization property. * * @param value * allowed object is * {@link String } * */ public void setSubmitterOrganization(String value) { this.submitterOrganization = value; } /** * Gets the value of the submissionDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getSubmissionDate() { return submissionDate; } /** * Sets the value of the submissionDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setSubmissionDate(XMLGregorianCalendar value) { this.submissionDate = value; } /** * Gets the value of the submissionComment property. * * @return * possible object is * {@link String } * */ public String getSubmissionComment() { return submissionComment; } /** * Sets the value of the submissionComment property. * * @param value * allowed object is * {@link String } * */ public void setSubmissionComment(String value) { this.submissionComment = value; } /** * Gets the value of the submissionSource property. * * @return * possible object is * {@link String } * */ public String getSubmissionSource() { return submissionSource; } /** * Sets the value of the submissionSource property. * * @param value * allowed object is * {@link String } * */ public void setSubmissionSource(String value) { this.submissionSource = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContentHistory.Submissions.Submission)) { return false; } if (this == object) { return true; } final ContentHistory.Submissions.Submission that = ((ContentHistory.Submissions.Submission) object); { String lhsSubmitter; lhsSubmitter = this.getSubmitter(); String rhsSubmitter; rhsSubmitter = that.getSubmitter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "submitter", lhsSubmitter), LocatorUtils.property( thatLocator, "submitter", rhsSubmitter), lhsSubmitter, rhsSubmitter)) { return false; } } { String lhsSubmitterOrganization; lhsSubmitterOrganization = this.getSubmitterOrganization(); String rhsSubmitterOrganization; rhsSubmitterOrganization = that.getSubmitterOrganization(); if (!strategy.equals(LocatorUtils.property(thisLocator, "submitterOrganization", lhsSubmitterOrganization), LocatorUtils.property(thatLocator, "submitterOrganization", rhsSubmitterOrganization), lhsSubmitterOrganization, rhsSubmitterOrganization)) { return false; } } { XMLGregorianCalendar lhsSubmissionDate; lhsSubmissionDate = this.getSubmissionDate(); XMLGregorianCalendar rhsSubmissionDate; rhsSubmissionDate = that.getSubmissionDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "submissionDate", lhsSubmissionDate), LocatorUtils .property(thatLocator, "submissionDate", rhsSubmissionDate), lhsSubmissionDate, rhsSubmissionDate)) { return false; } } { String lhsSubmissionComment; lhsSubmissionComment = this.getSubmissionComment(); String rhsSubmissionComment; rhsSubmissionComment = that.getSubmissionComment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "submissionComment", lhsSubmissionComment), LocatorUtils.property(thatLocator, "submissionComment", rhsSubmissionComment), lhsSubmissionComment, rhsSubmissionComment)) { return false; } } { String lhsSubmissionSource; lhsSubmissionSource = this.getSubmissionSource(); String rhsSubmissionSource; rhsSubmissionSource = that.getSubmissionSource(); if (!strategy.equals(LocatorUtils.property(thisLocator, "submissionSource", lhsSubmissionSource), LocatorUtils.property(thatLocator, "submissionSource", rhsSubmissionSource), lhsSubmissionSource, rhsSubmissionSource)) { 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; { String theSubmitter; theSubmitter = this.getSubmitter(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "submitter", theSubmitter), currentHashCode, theSubmitter); } { String theSubmitterOrganization; theSubmitterOrganization = this.getSubmitterOrganization(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "submitterOrganization", theSubmitterOrganization), currentHashCode, theSubmitterOrganization); } { XMLGregorianCalendar theSubmissionDate; theSubmissionDate = this.getSubmissionDate(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "submissionDate", theSubmissionDate), currentHashCode, theSubmissionDate); } { String theSubmissionComment; theSubmissionComment = this.getSubmissionComment(); currentHashCode = strategy.hashCode( LocatorUtils.property(locator, "submissionComment", theSubmissionComment), currentHashCode, theSubmissionComment); } { String theSubmissionSource; theSubmissionSource = this.getSubmissionSource(); currentHashCode = strategy.hashCode(LocatorUtils.property( locator, "submissionSource", theSubmissionSource), currentHashCode, theSubmissionSource); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public ContentHistory.Submissions.Submission withSubmitter( String value) { setSubmitter(value); return this; } public ContentHistory.Submissions.Submission withSubmitterOrganization( String value) { setSubmitterOrganization(value); return this; } public ContentHistory.Submissions.Submission withSubmissionDate( XMLGregorianCalendar value) { setSubmissionDate(value); return this; } public ContentHistory.Submissions.Submission withSubmissionComment( String value) { setSubmissionComment(value); return this; } public ContentHistory.Submissions.Submission withSubmissionSource( String value) { setSubmissionSource(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) { { String theSubmitter; theSubmitter = this.getSubmitter(); strategy.appendField(locator, this, "submitter", buffer, theSubmitter); } { String theSubmitterOrganization; theSubmitterOrganization = this.getSubmitterOrganization(); strategy.appendField(locator, this, "submitterOrganization", buffer, theSubmitterOrganization); } { XMLGregorianCalendar theSubmissionDate; theSubmissionDate = this.getSubmissionDate(); strategy.appendField(locator, this, "submissionDate", buffer, theSubmissionDate); } { String theSubmissionComment; theSubmissionComment = this.getSubmissionComment(); strategy.appendField(locator, this, "submissionComment", buffer, theSubmissionComment); } { String theSubmissionSource; theSubmissionSource = this.getSubmissionSource(); strategy.appendField(locator, this, "submissionSource", buffer, theSubmissionSource); } 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, ContentHistory.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 ContentHistory instance for XML String * * @param text * XML String for the document * @return The ContentHistory instance for the passed XML String */ public static ContentHistory fromXMLString(String text) { JAXBContext jaxbContext; try { jaxbContext = JAXBContext.newInstance(ContentHistory.class .getPackage().getName()); Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); unmarshaller.setSchema(STIXSchema.getInstance().getSchema()); unmarshaller.setEventHandler(new ValidationEventHandler()); StreamSource streamSource = new StreamSource(new StringReader(text)); return (ContentHistory) unmarshaller.unmarshal(streamSource); } catch (JAXBException e) { throw new RuntimeException(e); } } /** * Validates the XML representation of this ContentHistory instance * Returning true indicating a successful validation, false if not. * * @return boolean */ public boolean validate() { return STIXSchema.getInstance().validate(toXMLString()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy