oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.ExternalReferenceType 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 javax.xml.datatype.XMLGregorianCalendar;
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.DocumentHashType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ExpiryDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ExpiryTimeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.URIType;
/**
*
*
* <?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>External Reference. Details</ccts:DictionaryEntryName><ccts:Definition>Information directly relating to an external reference i.e. a document stored at a remote location.</ccts:Definition><ccts:ObjectClass>External Reference</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for ExternalReferenceType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ExternalReferenceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}URI" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}DocumentHash" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExpiryDate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExpiryTime" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExternalReferenceType", propOrder = {
"uri",
"documentHash",
"expiryDate",
"expiryTime"
})
public class ExternalReferenceType implements Serializable
{
@XmlElement(name = "URI", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private URIType uri;
@XmlElement(name = "DocumentHash", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private DocumentHashType documentHash;
@XmlElement(name = "ExpiryDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private ExpiryDateType expiryDate;
@XmlElement(name = "ExpiryTime", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private ExpiryTimeType expiryTime;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public ExternalReferenceType() {
}
/**
*
*
* <?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>External Reference. URI. Identifier</ccts:DictionaryEntryName><ccts:Definition>The Uniform Resource Identifier (URI) that identifies where the external document is located.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>External Reference</ccts:ObjectClass><ccts:PropertyTerm>URI</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link URIType }
*
*/
@Nullable
public URIType getURI() {
return uri;
}
/**
* Sets the value of the uri property.
*
* @param value
* allowed object is
* {@link URIType }
*
*/
public void setURI(
@Nullable
URIType value) {
this.uri = 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>External Reference. Document Hash. Text</ccts:DictionaryEntryName><ccts:Definition>Specifies the hash code for the externally stored document.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>External Reference</ccts:ObjectClass><ccts:PropertyTerm>Document Hash</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link DocumentHashType }
*
*/
@Nullable
public DocumentHashType getDocumentHash() {
return documentHash;
}
/**
* Sets the value of the documentHash property.
*
* @param value
* allowed object is
* {@link DocumentHashType }
*
*/
public void setDocumentHash(
@Nullable
DocumentHashType value) {
this.documentHash = 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>External Reference. Expiry Date. Date</ccts:DictionaryEntryName><ccts:Definition>The date on which the document can no longer be found on the URI.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>External Reference</ccts:ObjectClass><ccts:PropertyTerm>Expiry Date</ccts:PropertyTerm><ccts:RepresentationTerm>Date</ccts:RepresentationTerm><ccts:DataType>Date. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ExpiryDateType }
*
*/
@Nullable
public ExpiryDateType getExpiryDate() {
return expiryDate;
}
/**
* Sets the value of the expiryDate property.
*
* @param value
* allowed object is
* {@link ExpiryDateType }
*
*/
public void setExpiryDate(
@Nullable
ExpiryDateType value) {
this.expiryDate = 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>External Reference. Expiry Time. Time</ccts:DictionaryEntryName><ccts:Definition>The time on which the document can no longer be found on the URI.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>External Reference</ccts:ObjectClass><ccts:PropertyTerm>Expiry Time</ccts:PropertyTerm><ccts:RepresentationTerm>Time</ccts:RepresentationTerm><ccts:DataType>Time. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link ExpiryTimeType }
*
*/
@Nullable
public ExpiryTimeType getExpiryTime() {
return expiryTime;
}
/**
* Sets the value of the expiryTime property.
*
* @param value
* allowed object is
* {@link ExpiryTimeType }
*
*/
public void setExpiryTime(
@Nullable
ExpiryTimeType value) {
this.expiryTime = 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 ExternalReferenceType rhs = ((ExternalReferenceType) o);
if (!EqualsUtils.equals(uri, rhs.uri)) {
return false;
}
if (!EqualsUtils.equals(documentHash, rhs.documentHash)) {
return false;
}
if (!EqualsUtils.equals(expiryDate, rhs.expiryDate)) {
return false;
}
if (!EqualsUtils.equals(expiryTime, rhs.expiryTime)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(uri).append(documentHash).append(expiryDate).append(expiryTime).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("uri", uri).append("documentHash", documentHash).append("expiryDate", expiryDate).append("expiryTime", expiryTime).toString();
}
/**
* 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 ExpiryDateType and never null
*/
@Nonnull
public ExpiryDateType setExpiryDate(
@Nullable
final XMLGregorianCalendar valueParam) {
ExpiryDateType aObj = getExpiryDate();
if (aObj == null) {
aObj = new ExpiryDateType(valueParam);
setExpiryDate(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 ExpiryTimeType and never null
*/
@Nonnull
public ExpiryTimeType setExpiryTime(
@Nullable
final XMLGregorianCalendar valueParam) {
ExpiryTimeType aObj = getExpiryTime();
if (aObj == null) {
aObj = new ExpiryTimeType(valueParam);
setExpiryTime(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 DocumentHashType and never null
*/
@Nonnull
public DocumentHashType setDocumentHash(
@Nullable
final String valueParam) {
DocumentHashType aObj = getDocumentHash();
if (aObj == null) {
aObj = new DocumentHashType(valueParam);
setDocumentHash(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 URIType and never null
*/
@Nonnull
public URIType setURI(
@Nullable
final String valueParam) {
URIType aObj = getURI();
if (aObj == null) {
aObj = new URIType(valueParam);
setURI(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained URIType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained URIType object or null
*/
@Nullable
public String getURIValue() {
URIType aObj = getURI();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained DocumentHashType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained DocumentHashType object or null
*/
@Nullable
public String getDocumentHashValue() {
DocumentHashType aObj = getDocumentHash();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained ExpiryDateType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained ExpiryDateType object or null
*/
@Nullable
public XMLGregorianCalendar getExpiryDateValue() {
ExpiryDateType aObj = getExpiryDate();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained ExpiryTimeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained ExpiryTimeType object or null
*/
@Nullable
public XMLGregorianCalendar getExpiryTimeValue() {
ExpiryTimeType aObj = getExpiryTime();
return ((aObj == null)?null:aObj.getValue());
}
}