Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.03.28 at 10:20:34 AM CET 
  //
  
  
  package net.opengis.iso19139.gmx.v_20060504;
 
 import java.util.List;

Java class for CT_UomCatalogue_Type complex type.

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

 <complexType name="CT_UomCatalogue_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmx}AbstractCT_Catalogue_Type">
       <sequence>
         <element name="uomItem" type="{http://www.isotc211.org/2005/gmx}UnitDefinition_PropertyType" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_UomCatalogue_Type", propOrder = {
     "uomItem"
 })
 public class CTUomCatalogueType
     extends AbstractCTCatalogueType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected List<UnitDefinitionPropertyTypeuomItem;

    
Gets the value of the uomItem 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 uomItem property.

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

    getUomItem().add(newItem);
 

Objects of the following type(s) are allowed in the list

 
         if ( == null) {
              = new ArrayList<UnitDefinitionPropertyType>();
         }
         return this.;
     }
    public String toString() {
        final ToStringStrategy strategy = .;
        final StringBuilder buffer = new StringBuilder();
        append(nullbufferstrategy);
        return buffer.toString();
    }
    public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        strategy.appendStart(locatorthisbuffer);
        appendFields(locatorbufferstrategy);
        strategy.appendEnd(locatorthisbuffer);
        return buffer;
    }
    public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        super.appendFields(locatorbufferstrategy);
        {
            List<UnitDefinitionPropertyTypetheUomItem;
            theUomItem = (((this.!= null)&&(!this..isEmpty()))?this.getUomItem():null);
            strategy.appendField(locatorthis"uomItem"buffertheUomItem);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof CTUomCatalogueType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final CTUomCatalogueType that = ((CTUomCatalogueTypeobject);
        {
            List<UnitDefinitionPropertyTypelhsUomItem;
            lhsUomItem = (((this.!= null)&&(!this..isEmpty()))?this.getUomItem():null);
            List<UnitDefinitionPropertyTyperhsUomItem;
            rhsUomItem = (((that.uomItem!= null)&&(!that.uomItem.isEmpty()))?that.getUomItem():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"uomItem"lhsUomItem), LocatorUtils.property(thatLocator"uomItem"rhsUomItem), lhsUomItemrhsUomItem)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            List<UnitDefinitionPropertyTypetheUomItem;
            theUomItem = (((this.!= null)&&(!this..isEmpty()))?this.getUomItem():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"uomItem"theUomItem), currentHashCodetheUomItem);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
    public Object clone() {
        return copyTo(createNewInstance());
    }
    public Object copyTo(Object target) {
        final CopyStrategy strategy = .;
        return copyTo(nulltargetstrategy);
    }
    public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof CTUomCatalogueType) {
            final CTUomCatalogueType copy = ((CTUomCatalogueTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<UnitDefinitionPropertyTypesourceUomItem;
                sourceUomItem = (((this.!= null)&&(!this..isEmpty()))?this.getUomItem():null);
                @SuppressWarnings("unchecked")
                List<UnitDefinitionPropertyTypecopyUomItem = ((List<UnitDefinitionPropertyType> ) strategy.copy(LocatorUtils.property(locator"uomItem"sourceUomItem), sourceUomItem));
                copy.uomItem = null;
                if (copyUomItem!= null) {
                    List<UnitDefinitionPropertyTypeuniqueUomIteml = copy.getUomItem();
                    uniqueUomIteml.addAll(copyUomItem);
                }
            } else {
                copy.uomItem = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new CTUomCatalogueType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof CTUomCatalogueType) {
            final CTUomCatalogueType target = this;
            final CTUomCatalogueType leftObject = ((CTUomCatalogueTypeleft);
            final CTUomCatalogueType rightObject = ((CTUomCatalogueTyperight);
            {
                List<UnitDefinitionPropertyTypelhsUomItem;
                lhsUomItem = (((leftObject.uomItem!= null)&&(!leftObject.uomItem.isEmpty()))?leftObject.getUomItem():null);
                List<UnitDefinitionPropertyTyperhsUomItem;
                rhsUomItem = (((rightObject.uomItem!= null)&&(!rightObject.uomItem.isEmpty()))?rightObject.getUomItem():null);
                List<UnitDefinitionPropertyTypemergedUomItem = ((List<UnitDefinitionPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"uomItem"lhsUomItem), LocatorUtils.property(rightLocator"uomItem"rhsUomItem), lhsUomItemrhsUomItem));
                target.uomItem = null;
                if (mergedUomItem!= null) {
                    List<UnitDefinitionPropertyTypeuniqueUomIteml = target.getUomItem();
                    uniqueUomIteml.addAll(mergedUomItem);
                }
            }
        }
    }
    public void setUomItem(List<UnitDefinitionPropertyTypevalue) {
        this. = null;
        List<UnitDefinitionPropertyTypedraftl = this.getUomItem();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (UnitDefinitionPropertyType valuevalues) {
                getUomItem().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getUomItem().addAll(values);
        }
        return this;
    }
        setUomItem(value);
        return this;
    }
    @Override
        setName(value);
        return this;
    }
    @Override
        if (values!= null) {
            for (CharacterStringPropertyType valuevalues) {
                getScope().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getScope().addAll(values);
        }
        return this;
    }
    @Override
        if (values!= null) {
            for (CharacterStringPropertyType valuevalues) {
                getFieldOfApplication().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getFieldOfApplication().addAll(values);
        }
        return this;
    }
    @Override
        setVersionNumber(value);
        return this;
    }
    @Override
        setVersionDate(value);
        return this;
    }
    @Override
        setLanguage(value);
        return this;
    }
    @Override
        setCharacterSet(value);
        return this;
    }
    @Override
    public CTUomCatalogueType withLocale(PTLocalePropertyType... values) {
        if (values!= null) {
            for (PTLocalePropertyType valuevalues) {
                getLocale().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getLocale().addAll(values);
        }
        return this;
    }
    @Override
        if (values!= null) {
            for (CTCataloguePropertyType valuevalues) {
                getSubCatalogue().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getSubCatalogue().addAll(values);
        }
        return this;
    }
    @Override
        setScope(value);
        return this;
    }
    @Override
        setFieldOfApplication(value);
        return this;
    }
    @Override
        setLocale(value);
        return this;
    }
    @Override
        setSubCatalogue(value);
        return this;
    }
    @Override
    public CTUomCatalogueType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public CTUomCatalogueType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X