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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.LineResponseType 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 com.phloc.commons.annotations.ReturnsMutableObject;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;


/**
 * 
 * 
 * <?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>Line Response. Details</ccts:DictionaryEntryName><ccts:Definition>A response to a Line in a Document.</ccts:Definition><ccts:ObjectClass>Line Response</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for LineResponseType complex type. * *

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

 * <complexType name="LineResponseType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}LineReference"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Response" maxOccurs="unbounded"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "LineResponseType", propOrder = { "lineReference", "response" }) public class LineResponseType implements Serializable { @XmlElement(name = "LineReference", required = true) private LineReferenceType lineReference; @XmlElement(name = "Response", required = true) private List response; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public LineResponseType() { } /** * *
     * <?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>Line Response. Line Reference</ccts:DictionaryEntryName><ccts:Definition>An association to Line Reference.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Line Response</ccts:ObjectClass><ccts:PropertyTerm>Line Reference</ccts:PropertyTerm><ccts:AssociatedObjectClass>Line Reference</ccts:AssociatedObjectClass></ccts:Component>
     * 
* * * @return * possible object is * {@link LineReferenceType } * */ @Nullable public LineReferenceType getLineReference() { return lineReference; } /** * Sets the value of the lineReference property. * * @param value * allowed object is * {@link LineReferenceType } * */ public void setLineReference( @Nullable LineReferenceType value) { this.lineReference = 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>Line Response. Response</ccts:DictionaryEntryName><ccts:Definition>An association to Response.</ccts:Definition><ccts:Cardinality>1..n</ccts:Cardinality><ccts:ObjectClass>Line Response</ccts:ObjectClass><ccts:PropertyTerm>Response</ccts:PropertyTerm><ccts:AssociatedObjectClass>Response</ccts:AssociatedObjectClass></ccts:Component>
     * 
* Gets the value of the response 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 response property. * *

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

     *    getResponse().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ResponseType } * * */ @Nonnull @ReturnsMutableObject(reason = "JAXB implementation style") public List getResponse() { if (response == null) { response = new ArrayList(); } return this.response; } /** * 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 LineResponseType rhs = ((LineResponseType) o); if (!EqualsUtils.equals(lineReference, rhs.lineReference)) { return false; } if (!EqualsUtils.equals(response, rhs.response)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(lineReference).append(response).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("lineReference", lineReference).append("response", response).toString(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @param aList * The new list member to set. May be null. */ public void setResponse( @Nullable final List aList) { response = aList; } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if at least one item is contained, false otherwise. */ public boolean hasResponseEntries() { return (!getResponse().isEmpty()); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * true if no item is contained, false otherwise. */ public boolean hasNoResponseEntries() { return getResponse().isEmpty(); } /** * Created by phloc-jaxb22-plugin -Xphloc-list-extension * * @return * The number of contained elements. Always ≥ 0. */ @Nonnegative public int getResponseCount() { return getResponse().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 ResponseType getResponseAtIndex( @Nonnegative final int index) { return getResponse().get(index); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy