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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.ContractType Maven / Gradle / Ivy


package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import com.phloc.commons.annotations.ReturnsMutableObject;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ContractTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ContractTypeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IssueDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IssueTimeType;


/**
 * 
 * 
 * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Details</ccts:DictionaryEntryName><ccts:Definition>Information about a Contract.</ccts:Definition><ccts:ObjectClass>Contract</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for ContractType complex type. * *

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

 * <complexType name="ContractType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}IssueDate" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}IssueTime" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ContractTypeCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ContractType" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ValidityPeriod" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ContractDocumentReference" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ContractType", propOrder = { "id", "issueDate", "issueTime", "contractTypeCode", "contractType", "validityPeriod", "contractDocumentReference" }) public class ContractType implements Serializable { @XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private IDType id; @XmlElement(name = "IssueDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private IssueDateType issueDate; @XmlElement(name = "IssueTime", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private IssueTimeType issueTime; @XmlElement(name = "ContractTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ContractTypeCodeType contractTypeCode; @XmlElement(name = "ContractType", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ContractTypeType contractType; @XmlElement(name = "ValidityPeriod") private PeriodType validityPeriod; @XmlElement(name = "ContractDocumentReference") private List contractDocumentReference; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public ContractType() { } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the Contract.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Contract</ccts:ObjectClass><ccts:PropertyTerm>Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:Examples>"CC23"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link IDType } * */ @Nullable public IDType getID() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link IDType } * */ public void setID( @Nullable IDType value) { this.id = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Issue Date. Date</ccts:DictionaryEntryName><ccts:Definition>The date on which the Contract was issued.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Contract</ccts:ObjectClass><ccts:PropertyTerm>Issue Date</ccts:PropertyTerm><ccts:RepresentationTerm>Date</ccts:RepresentationTerm><ccts:DataType>Date. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link IssueDateType } * */ @Nullable public IssueDateType getIssueDate() { return issueDate; } /** * Sets the value of the issueDate property. * * @param value * allowed object is * {@link IssueDateType } * */ public void setIssueDate( @Nullable IssueDateType value) { this.issueDate = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Issue Time. Time</ccts:DictionaryEntryName><ccts:Definition>The time at which the Contract was issued.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Contract</ccts:ObjectClass><ccts:PropertyTerm>Issue Time</ccts:PropertyTerm><ccts:RepresentationTerm>Time</ccts:RepresentationTerm><ccts:DataType>Time. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link IssueTimeType } * */ @Nullable public IssueTimeType getIssueTime() { return issueTime; } /** * Sets the value of the issueTime property. * * @param value * allowed object is * {@link IssueTimeType } * */ public void setIssueTime( @Nullable IssueTimeType value) { this.issueTime = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Contract Type Code. Code</ccts:DictionaryEntryName><ccts:Definition>The type of Contract, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Contract</ccts:ObjectClass><ccts:PropertyTerm>Contract Type Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ContractTypeCodeType } * */ @Nullable public ContractTypeCodeType getContractTypeCode() { return contractTypeCode; } /** * Sets the value of the contractTypeCode property. * * @param value * allowed object is * {@link ContractTypeCodeType } * */ public void setContractTypeCode( @Nullable ContractTypeCodeType value) { this.contractTypeCode = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Contract Type. Text</ccts:DictionaryEntryName><ccts:Definition>The type of Contract, expressed as text.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Contract</ccts:ObjectClass><ccts:PropertyTerm>Contract Type</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link ContractTypeType } * */ @Nullable public ContractTypeType getContractType() { return contractType; } /** * Sets the value of the contractType property. * * @param value * allowed object is * {@link ContractTypeType } * */ public void setContractType( @Nullable ContractTypeType value) { this.contractType = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Validity_ Period. Period</ccts:DictionaryEntryName><ccts:Definition>An association to Validity Period.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Contract</ccts:ObjectClass><ccts:PropertyTermQualifier>Validity</ccts:PropertyTermQualifier><ccts:PropertyTerm>Period</ccts:PropertyTerm><ccts:AssociatedObjectClass>Period</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link PeriodType } * */ @Nullable public PeriodType getValidityPeriod() { return validityPeriod; } /** * Sets the value of the validityPeriod property. * * @param value * allowed object is * {@link PeriodType } * */ public void setValidityPeriod( @Nullable PeriodType value) { this.validityPeriod = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Contract. Contract_ Document Reference. Document Reference</ccts:DictionaryEntryName><ccts:Definition>An associative reference to Contract Document.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Contract</ccts:ObjectClass><ccts:PropertyTermQualifier>Contract</ccts:PropertyTermQualifier><ccts:PropertyTerm>Document Reference</ccts:PropertyTerm><ccts:AssociatedObjectClass>Document Reference</ccts:AssociatedObjectClass></ccts:Component>
     * 
* Gets the value of the contractDocumentReference 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 contractDocumentReference property. * *

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

     *    getContractDocumentReference().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DocumentReferenceType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getContractDocumentReference() { if (contractDocumentReference == null) { contractDocumentReference = new ArrayList(); } return this.contractDocumentReference; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if ((o == null)||(!getClass().equals(o.getClass()))) { return false; } final ContractType rhs = ((ContractType) o); if (!EqualsUtils.equals(id, rhs.id)) { return false; } if (!EqualsUtils.equals(issueDate, rhs.issueDate)) { return false; } if (!EqualsUtils.equals(issueTime, rhs.issueTime)) { return false; } if (!EqualsUtils.equals(contractTypeCode, rhs.contractTypeCode)) { return false; } if (!EqualsUtils.equals(contractType, rhs.contractType)) { return false; } if (!EqualsUtils.equals(validityPeriod, rhs.validityPeriod)) { return false; } if (!EqualsUtils.equals(contractDocumentReference, rhs.contractDocumentReference)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(id).append(issueDate).append(issueTime).append(contractTypeCode).append(contractType).append(validityPeriod).append(contractDocumentReference).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("id", id).append("issueDate", issueDate).append("issueTime", issueTime).append("contractTypeCode", contractTypeCode).append("contractType", contractType).append("validityPeriod", validityPeriod).append("contractDocumentReference", contractDocumentReference).toString(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setContractDocumentReference( @Nullable final List aList) { contractDocumentReference = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasContractDocumentReferenceEntries() { return (!getContractDocumentReference().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoContractDocumentReferenceEntries() { return getContractDocumentReference().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getContractDocumentReferenceCount() { return getContractDocumentReference().size(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param index * The index to retrieve * @return * The element at the specified index. May be null * @throws ArrayIndexOutOfBoundsException * if the index is invalid! */ @Nullable public DocumentReferenceType getContractDocumentReferenceAtIndex( @Nonnegative final int index) { return getContractDocumentReference().get(index); } /** * Special setter with value of type XMLGregorianCalendar * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type IssueDateType and never null */ @Nonnull public IssueDateType setIssueDate( @Nullable final XMLGregorianCalendar valueParam) { IssueDateType aObj = getIssueDate(); if (aObj == null) { aObj = new IssueDateType(valueParam); setIssueDate(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type XMLGregorianCalendar * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type IssueTimeType and never null */ @Nonnull public IssueTimeType setIssueTime( @Nullable final XMLGregorianCalendar valueParam) { IssueTimeType aObj = getIssueTime(); if (aObj == null) { aObj = new IssueTimeType(valueParam); setIssueTime(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type ContractTypeType and never null */ @Nonnull public ContractTypeType setContractType( @Nullable final String valueParam) { ContractTypeType aObj = getContractType(); if (aObj == null) { aObj = new ContractTypeType(valueParam); setContractType(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type IDType and never null */ @Nonnull public IDType setID( @Nullable final String valueParam) { IDType aObj = getID(); if (aObj == null) { aObj = new IDType(valueParam); setID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type ContractTypeCodeType and never null */ @Nonnull public ContractTypeCodeType setContractTypeCode( @Nullable final String valueParam) { ContractTypeCodeType aObj = getContractTypeCode(); if (aObj == null) { aObj = new ContractTypeCodeType(valueParam); setContractTypeCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained IDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained IDType object or null */ @Nullable public String getIDValue() { IDType aObj = getID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained IssueDateType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained IssueDateType object or null */ @Nullable public XMLGregorianCalendar getIssueDateValue() { IssueDateType aObj = getIssueDate(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained IssueTimeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained IssueTimeType object or null */ @Nullable public XMLGregorianCalendar getIssueTimeValue() { IssueTimeType aObj = getIssueTime(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ContractTypeCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ContractTypeCodeType object or null */ @Nullable public String getContractTypeCodeValue() { ContractTypeCodeType aObj = getContractTypeCode(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ContractTypeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ContractTypeType object or null */ @Nullable public String getContractTypeValue() { ContractTypeType aObj = getContractType(); return ((aObj == null)?null:aObj.getValue()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy