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

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


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

import java.io.Serializable;
import java.math.BigDecimal;
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 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.MaximumCopiesNumericType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PrintQualifierType;


/**
 * 
 * 
 * <?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>Document Distribution. Details</ccts:DictionaryEntryName><ccts:Definition>The details of the distribution of the document among business partners.</ccts:Definition><ccts:ObjectClass>Document Distribution</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for DocumentDistributionType complex type. * *

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

 * <complexType name="DocumentDistributionType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PrintQualifier"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MaximumCopiesNumeric"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Party"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DocumentDistributionType", propOrder = { "printQualifier", "maximumCopiesNumeric", "party" }) public class DocumentDistributionType implements Serializable { @XmlElement(name = "PrintQualifier", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) private PrintQualifierType printQualifier; @XmlElement(name = "MaximumCopiesNumeric", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) private MaximumCopiesNumericType maximumCopiesNumeric; @XmlElement(name = "Party", required = true) private PartyType party; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public DocumentDistributionType() { } /** * *
     * <?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>Document Distribution. Print_ Qualifier. Text</ccts:DictionaryEntryName><ccts:Definition>The access right for a Party to distribute the document.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Document Distribution</ccts:ObjectClass><ccts:PropertyTermQualifier>Print</ccts:PropertyTermQualifier><ccts:PropertyTerm>Qualifier</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link PrintQualifierType } * */ @Nullable public PrintQualifierType getPrintQualifier() { return printQualifier; } /** * Sets the value of the printQualifier property. * * @param value * allowed object is * {@link PrintQualifierType } * */ public void setPrintQualifier( @Nullable PrintQualifierType value) { this.printQualifier = 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>Document Distribution. Maximum_ Copies. Numeric</ccts:DictionaryEntryName><ccts:Definition>Specifies the maximum number of copies of the document that the user can print.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Document Distribution</ccts:ObjectClass><ccts:PropertyTermQualifier>Maximum</ccts:PropertyTermQualifier><ccts:PropertyTerm>Copies</ccts:PropertyTerm><ccts:RepresentationTerm>Numeric</ccts:RepresentationTerm><ccts:DataType>Numeric. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link MaximumCopiesNumericType } * */ @Nullable public MaximumCopiesNumericType getMaximumCopiesNumeric() { return maximumCopiesNumeric; } /** * Sets the value of the maximumCopiesNumeric property. * * @param value * allowed object is * {@link MaximumCopiesNumericType } * */ public void setMaximumCopiesNumeric( @Nullable MaximumCopiesNumericType value) { this.maximumCopiesNumeric = 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>Document Distribution. Party</ccts:DictionaryEntryName><ccts:Definition>Details of the Party who can access the document.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Document Distribution</ccts:ObjectClass><ccts:PropertyTerm>Party</ccts:PropertyTerm><ccts:AssociatedObjectClass>Party</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link PartyType } * */ @Nullable public PartyType getParty() { return party; } /** * Sets the value of the party property. * * @param value * allowed object is * {@link PartyType } * */ public void setParty( @Nullable PartyType value) { this.party = value; } /** * 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 DocumentDistributionType rhs = ((DocumentDistributionType) o); if (!EqualsUtils.equals(printQualifier, rhs.printQualifier)) { return false; } if (!EqualsUtils.equals(maximumCopiesNumeric, rhs.maximumCopiesNumeric)) { return false; } if (!EqualsUtils.equals(party, rhs.party)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(printQualifier).append(maximumCopiesNumeric).append(party).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("printQualifier", printQualifier).append("maximumCopiesNumeric", maximumCopiesNumeric).append("party", party).toString(); } /** * Special setter with value of type BigDecimal * 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 MaximumCopiesNumericType and never null */ @Nonnull public MaximumCopiesNumericType setMaximumCopiesNumeric( @Nullable final BigDecimal valueParam) { MaximumCopiesNumericType aObj = getMaximumCopiesNumeric(); if (aObj == null) { aObj = new MaximumCopiesNumericType(valueParam); setMaximumCopiesNumeric(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 PrintQualifierType and never null */ @Nonnull public PrintQualifierType setPrintQualifier( @Nullable final String valueParam) { PrintQualifierType aObj = getPrintQualifier(); if (aObj == null) { aObj = new PrintQualifierType(valueParam); setPrintQualifier(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained PrintQualifierType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PrintQualifierType object or null */ @Nullable public String getPrintQualifierValue() { PrintQualifierType aObj = getPrintQualifier(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained MaximumCopiesNumericType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained MaximumCopiesNumericType object or null */ @Nullable public BigDecimal getMaximumCopiesNumericValue() { MaximumCopiesNumericType aObj = getMaximumCopiesNumeric(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy