oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.TransportEquipmentSealType 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.ConditionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SealIssuerTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SealStatusCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SealingPartyTypeType;
/**
*
*
* <?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>Transport Equipment Seal. Details</ccts:DictionaryEntryName><ccts:Definition>Information about a transport equipment seal (a security device attached to the doors of a shipping container).</ccts:Definition><ccts:ObjectClass>Transport Equipment Seal</ccts:ObjectClass><ccts:AlternativeBusinessTerms>Container Seal</ccts:AlternativeBusinessTerms></ccts:Component>
*
*
*
* Java class for TransportEquipmentSealType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TransportEquipmentSealType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SealIssuerTypeCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Condition" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SealStatusCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SealingPartyType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransportEquipmentSealType", propOrder = {
"id",
"sealIssuerTypeCode",
"condition",
"sealStatusCode",
"sealingPartyType"
})
public class TransportEquipmentSealType implements Serializable
{
@XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
private IDType id;
@XmlElement(name = "SealIssuerTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private SealIssuerTypeCodeType sealIssuerTypeCode;
@XmlElement(name = "Condition", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private ConditionType condition;
@XmlElement(name = "SealStatusCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private SealStatusCodeType sealStatusCode;
@XmlElement(name = "SealingPartyType", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private SealingPartyTypeType sealingPartyType;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public TransportEquipmentSealType() {
}
/**
*
*
* <?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>Transport Equipment Seal. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the seal.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Transport Equipment Seal</ccts:ObjectClass><ccts:PropertyTerm>Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:Examples>"ACS1234"</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>Transport Equipment Seal. Seal Issuer Type Code. Code</ccts:DictionaryEntryName><ccts:Definition>The type of party that issues and is responsible for a seal, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Equipment Seal</ccts:ObjectClass><ccts:PropertyTerm>Seal Issuer Type Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link SealIssuerTypeCodeType }
*
*/
@Nullable
public SealIssuerTypeCodeType getSealIssuerTypeCode() {
return sealIssuerTypeCode;
}
/**
* Sets the value of the sealIssuerTypeCode property.
*
* @param value
* allowed object is
* {@link SealIssuerTypeCodeType }
*
*/
public void setSealIssuerTypeCode(
@Nullable
SealIssuerTypeCodeType value) {
this.sealIssuerTypeCode = 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>Transport Equipment Seal. Condition. Text</ccts:DictionaryEntryName><ccts:Definition>Information about the condition of a seal.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Equipment Seal</ccts:ObjectClass><ccts:PropertyTerm>Condition</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ConditionType }
*
*/
@Nullable
public ConditionType getCondition() {
return condition;
}
/**
* Sets the value of the condition property.
*
* @param value
* allowed object is
* {@link ConditionType }
*
*/
public void setCondition(
@Nullable
ConditionType value) {
this.condition = 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>Transport Equipment Seal. Seal Status Code. Code</ccts:DictionaryEntryName><ccts:Definition>The status of a seal, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Equipment Seal</ccts:ObjectClass><ccts:PropertyTerm>Seal Status Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link SealStatusCodeType }
*
*/
@Nullable
public SealStatusCodeType getSealStatusCode() {
return sealStatusCode;
}
/**
* Sets the value of the sealStatusCode property.
*
* @param value
* allowed object is
* {@link SealStatusCodeType }
*
*/
public void setSealStatusCode(
@Nullable
SealStatusCodeType value) {
this.sealStatusCode = 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>Transport Equipment Seal. Sealing Party Type. Text</ccts:DictionaryEntryName><ccts:Definition>Textual description of the role of a sealing party.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Equipment Seal</ccts:ObjectClass><ccts:PropertyTerm>Sealing Party Type</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Sealing Party</ccts:AlternativeBusinessTerms></ccts:Component>
*
*
*
* @return
* possible object is
* {@link SealingPartyTypeType }
*
*/
@Nullable
public SealingPartyTypeType getSealingPartyType() {
return sealingPartyType;
}
/**
* Sets the value of the sealingPartyType property.
*
* @param value
* allowed object is
* {@link SealingPartyTypeType }
*
*/
public void setSealingPartyType(
@Nullable
SealingPartyTypeType value) {
this.sealingPartyType = 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 TransportEquipmentSealType rhs = ((TransportEquipmentSealType) o);
if (!EqualsUtils.equals(id, rhs.id)) {
return false;
}
if (!EqualsUtils.equals(sealIssuerTypeCode, rhs.sealIssuerTypeCode)) {
return false;
}
if (!EqualsUtils.equals(condition, rhs.condition)) {
return false;
}
if (!EqualsUtils.equals(sealStatusCode, rhs.sealStatusCode)) {
return false;
}
if (!EqualsUtils.equals(sealingPartyType, rhs.sealingPartyType)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(id).append(sealIssuerTypeCode).append(condition).append(sealStatusCode).append(sealingPartyType).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("id", id).append("sealIssuerTypeCode", sealIssuerTypeCode).append("condition", condition).append("sealStatusCode", sealStatusCode).append("sealingPartyType", sealingPartyType).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 ConditionType and never null
*/
@Nonnull
public ConditionType setCondition(
@Nullable
final String valueParam) {
ConditionType aObj = getCondition();
if (aObj == null) {
aObj = new ConditionType(valueParam);
setCondition(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 SealingPartyTypeType and never null
*/
@Nonnull
public SealingPartyTypeType setSealingPartyType(
@Nullable
final String valueParam) {
SealingPartyTypeType aObj = getSealingPartyType();
if (aObj == null) {
aObj = new SealingPartyTypeType(valueParam);
setSealingPartyType(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 SealIssuerTypeCodeType and never null
*/
@Nonnull
public SealIssuerTypeCodeType setSealIssuerTypeCode(
@Nullable
final String valueParam) {
SealIssuerTypeCodeType aObj = getSealIssuerTypeCode();
if (aObj == null) {
aObj = new SealIssuerTypeCodeType(valueParam);
setSealIssuerTypeCode(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 SealStatusCodeType and never null
*/
@Nonnull
public SealStatusCodeType setSealStatusCode(
@Nullable
final String valueParam) {
SealStatusCodeType aObj = getSealStatusCode();
if (aObj == null) {
aObj = new SealStatusCodeType(valueParam);
setSealStatusCode(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 SealIssuerTypeCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained SealIssuerTypeCodeType object or null
*/
@Nullable
public String getSealIssuerTypeCodeValue() {
SealIssuerTypeCodeType aObj = getSealIssuerTypeCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained ConditionType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained ConditionType object or null
*/
@Nullable
public String getConditionValue() {
ConditionType aObj = getCondition();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained SealStatusCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained SealStatusCodeType object or null
*/
@Nullable
public String getSealStatusCodeValue() {
SealStatusCodeType aObj = getSealStatusCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained SealingPartyTypeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained SealingPartyTypeType object or null
*/
@Nullable
public String getSealingPartyTypeValue() {
SealingPartyTypeType aObj = getSealingPartyType();
return ((aObj == null)?null:aObj.getValue());
}
}