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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.AddressLineType 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.LineType;


/**
 * 
 * 
 * <?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>Address Line. Details</ccts:DictionaryEntryName><ccts:Definition>Information about a line of address expressed as unstructured text.</ccts:Definition><ccts:ObjectClass>Address Line</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for AddressLineType complex type. * *

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

 * <complexType name="AddressLineType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Line"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AddressLineType", propOrder = { "line" }) public class AddressLineType implements Serializable { @XmlElement(name = "Line", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) private LineType line; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public AddressLineType() { } /** * *
     * <?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>Address Line. Line. Text</ccts:DictionaryEntryName><ccts:Definition>A line of address expressed as unstructured text.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Address Line</ccts:ObjectClass><ccts:PropertyTerm>Line</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:Examples>"123 Standard Chartered Tower"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link LineType } * */ @Nullable public LineType getLine() { return line; } /** * Sets the value of the line property. * * @param value * allowed object is * {@link LineType } * */ public void setLine( @Nullable LineType value) { this.line = 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 AddressLineType rhs = ((AddressLineType) o); if (!EqualsUtils.equals(line, rhs.line)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(line).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("line", line).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 LineType and never null */ @Nonnull public LineType setLine( @Nullable final String valueParam) { LineType aObj = getLine(); if (aObj == null) { aObj = new LineType(valueParam); setLine(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained LineType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained LineType object or null */ @Nullable public String getLineValue() { LineType aObj = getLine(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy