oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.OrderLineReferenceType Maven / Gradle / Ivy
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
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.LineIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LineStatusCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SalesOrderLineIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.UUIDType;
/**
*
*
* <?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>Order Line Reference. Details</ccts:DictionaryEntryName><ccts:Definition>Information about an Order Line Reference.</ccts:Definition><ccts:ObjectClass>Order Line Reference</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for OrderLineReferenceType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="OrderLineReferenceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}LineID"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SalesOrderLineID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UUID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}LineStatusCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}OrderReference" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrderLineReferenceType", propOrder = {
"lineID",
"salesOrderLineID",
"uuid",
"lineStatusCode",
"orderReference"
})
public class OrderLineReferenceType implements Serializable
{
@XmlElement(name = "LineID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
private LineIDType lineID;
@XmlElement(name = "SalesOrderLineID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private SalesOrderLineIDType salesOrderLineID;
@XmlElement(name = "UUID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private UUIDType uuid;
@XmlElement(name = "LineStatusCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private LineStatusCodeType lineStatusCode;
@XmlElement(name = "OrderReference")
private OrderReferenceType orderReference;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public OrderLineReferenceType() {
}
/**
*
*
* <?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>Order Line Reference. Line Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the referenced Order Line assigned by the buyer.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Order Line Reference</ccts:ObjectClass><ccts:PropertyTerm>Line Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link LineIDType }
*
*/
@Nullable
public LineIDType getLineID() {
return lineID;
}
/**
* Sets the value of the lineID property.
*
* @param value
* allowed object is
* {@link LineIDType }
*
*/
public void setLineID(
@Nullable
LineIDType value) {
this.lineID = 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>Order Line Reference. Sales Order_ Line Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the referenced Order Line assigned by the seller.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Order Line Reference</ccts:ObjectClass><ccts:PropertyTermQualifier>Sales Order</ccts:PropertyTermQualifier><ccts:PropertyTerm>Line Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link SalesOrderLineIDType }
*
*/
@Nullable
public SalesOrderLineIDType getSalesOrderLineID() {
return salesOrderLineID;
}
/**
* Sets the value of the salesOrderLineID property.
*
* @param value
* allowed object is
* {@link SalesOrderLineIDType }
*
*/
public void setSalesOrderLineID(
@Nullable
SalesOrderLineIDType value) {
this.salesOrderLineID = 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>Order Line Reference. UUID. Identifier</ccts:DictionaryEntryName><ccts:Definition>A universally unique identifier for an instance of this ABIE.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Order Line Reference</ccts:ObjectClass><ccts:PropertyTerm>UUID</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link UUIDType }
*
*/
@Nullable
public UUIDType getUUID() {
return uuid;
}
/**
* Sets the value of the uuid property.
*
* @param value
* allowed object is
* {@link UUIDType }
*
*/
public void setUUID(
@Nullable
UUIDType value) {
this.uuid = 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>Order Line Reference. Line Status Code. Code</ccts:DictionaryEntryName><ccts:Definition>Identifies the status of the referenced Order Line with respect to its original state.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Order Line Reference</ccts:ObjectClass><ccts:PropertyTerm>Line Status Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Line Status_ Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link LineStatusCodeType }
*
*/
@Nullable
public LineStatusCodeType getLineStatusCode() {
return lineStatusCode;
}
/**
* Sets the value of the lineStatusCode property.
*
* @param value
* allowed object is
* {@link LineStatusCodeType }
*
*/
public void setLineStatusCode(
@Nullable
LineStatusCodeType value) {
this.lineStatusCode = 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>Order Line Reference. Order Reference</ccts:DictionaryEntryName><ccts:Definition>An association to Order Reference.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Order Line Reference</ccts:ObjectClass><ccts:PropertyTerm>Order Reference</ccts:PropertyTerm><ccts:AssociatedObjectClass>Order Reference</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link OrderReferenceType }
*
*/
@Nullable
public OrderReferenceType getOrderReference() {
return orderReference;
}
/**
* Sets the value of the orderReference property.
*
* @param value
* allowed object is
* {@link OrderReferenceType }
*
*/
public void setOrderReference(
@Nullable
OrderReferenceType value) {
this.orderReference = 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 OrderLineReferenceType rhs = ((OrderLineReferenceType) o);
if (!EqualsUtils.equals(lineID, rhs.lineID)) {
return false;
}
if (!EqualsUtils.equals(salesOrderLineID, rhs.salesOrderLineID)) {
return false;
}
if (!EqualsUtils.equals(uuid, rhs.uuid)) {
return false;
}
if (!EqualsUtils.equals(lineStatusCode, rhs.lineStatusCode)) {
return false;
}
if (!EqualsUtils.equals(orderReference, rhs.orderReference)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(lineID).append(salesOrderLineID).append(uuid).append(lineStatusCode).append(orderReference).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("lineID", lineID).append("salesOrderLineID", salesOrderLineID).append("uuid", uuid).append("lineStatusCode", lineStatusCode).append("orderReference", orderReference).toString();
}
/**
* 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 LineIDType and never null
*/
@Nonnull
public LineIDType setLineID(
@Nullable
final String valueParam) {
LineIDType aObj = getLineID();
if (aObj == null) {
aObj = new LineIDType(valueParam);
setLineID(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 SalesOrderLineIDType and never null
*/
@Nonnull
public SalesOrderLineIDType setSalesOrderLineID(
@Nullable
final String valueParam) {
SalesOrderLineIDType aObj = getSalesOrderLineID();
if (aObj == null) {
aObj = new SalesOrderLineIDType(valueParam);
setSalesOrderLineID(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 UUIDType and never null
*/
@Nonnull
public UUIDType setUUID(
@Nullable
final String valueParam) {
UUIDType aObj = getUUID();
if (aObj == null) {
aObj = new UUIDType(valueParam);
setUUID(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 LineStatusCodeType and never null
*/
@Nonnull
public LineStatusCodeType setLineStatusCode(
@Nullable
final String valueParam) {
LineStatusCodeType aObj = getLineStatusCode();
if (aObj == null) {
aObj = new LineStatusCodeType(valueParam);
setLineStatusCode(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained LineIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained LineIDType object or null
*/
@Nullable
public String getLineIDValue() {
LineIDType aObj = getLineID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained SalesOrderLineIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained SalesOrderLineIDType object or null
*/
@Nullable
public String getSalesOrderLineIDValue() {
SalesOrderLineIDType aObj = getSalesOrderLineID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained UUIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained UUIDType object or null
*/
@Nullable
public String getUUIDValue() {
UUIDType aObj = getUUID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained LineStatusCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained LineStatusCodeType object or null
*/
@Nullable
public String getLineStatusCodeValue() {
LineStatusCodeType aObj = getLineStatusCode();
return ((aObj == null)?null:aObj.getValue());
}
}