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.04.16 at 07:39:09 AM CEST 
  //
  
  
  package net.opengis.iso19139.gmx.v_20060504;
 
 import java.util.List;

Java class for CT_CodelistCatalogue_Type complex type.

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

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

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

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

    getCodelistItem().add(newItem);
 

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

 
         if ( == null) {
              = new ArrayList<CTCodelistPropertyType>();
         }
         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<CTCodelistPropertyTypetheCodelistItem;
            theCodelistItem = (((this.!= null)&&(!this..isEmpty()))?this.getCodelistItem():null);
            strategy.appendField(locatorthis"codelistItem"buffertheCodelistItem);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof CTCodelistCatalogueType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final CTCodelistCatalogueType that = ((CTCodelistCatalogueTypeobject);
        {
            List<CTCodelistPropertyTypelhsCodelistItem;
            lhsCodelistItem = (((this.!= null)&&(!this..isEmpty()))?this.getCodelistItem():null);
            List<CTCodelistPropertyTyperhsCodelistItem;
            rhsCodelistItem = (((that.codelistItem!= null)&&(!that.codelistItem.isEmpty()))?that.getCodelistItem():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"codelistItem"lhsCodelistItem), LocatorUtils.property(thatLocator"codelistItem"rhsCodelistItem), lhsCodelistItemrhsCodelistItem)) {
                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<CTCodelistPropertyTypetheCodelistItem;
            theCodelistItem = (((this.!= null)&&(!this..isEmpty()))?this.getCodelistItem():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"codelistItem"theCodelistItem), currentHashCodetheCodelistItem);
        }
        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 CTCodelistCatalogueType) {
            final CTCodelistCatalogueType copy = ((CTCodelistCatalogueTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<CTCodelistPropertyTypesourceCodelistItem;
                sourceCodelistItem = (((this.!= null)&&(!this..isEmpty()))?this.getCodelistItem():null);
                @SuppressWarnings("unchecked")
                List<CTCodelistPropertyTypecopyCodelistItem = ((List<CTCodelistPropertyType> ) strategy.copy(LocatorUtils.property(locator"codelistItem"sourceCodelistItem), sourceCodelistItem));
                copy.codelistItem = null;
                if (copyCodelistItem!= null) {
                    List<CTCodelistPropertyTypeuniqueCodelistIteml = copy.getCodelistItem();
                    uniqueCodelistIteml.addAll(copyCodelistItem);
                }
            } else {
                copy.codelistItem = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new CTCodelistCatalogueType();
    }
    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 CTCodelistCatalogueType) {
            final CTCodelistCatalogueType target = this;
            final CTCodelistCatalogueType leftObject = ((CTCodelistCatalogueTypeleft);
            final CTCodelistCatalogueType rightObject = ((CTCodelistCatalogueTyperight);
            {
                List<CTCodelistPropertyTypelhsCodelistItem;
                lhsCodelistItem = (((leftObject.codelistItem!= null)&&(!leftObject.codelistItem.isEmpty()))?leftObject.getCodelistItem():null);
                List<CTCodelistPropertyTyperhsCodelistItem;
                rhsCodelistItem = (((rightObject.codelistItem!= null)&&(!rightObject.codelistItem.isEmpty()))?rightObject.getCodelistItem():null);
                List<CTCodelistPropertyTypemergedCodelistItem = ((List<CTCodelistPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"codelistItem"lhsCodelistItem), LocatorUtils.property(rightLocator"codelistItem"rhsCodelistItem), lhsCodelistItemrhsCodelistItem));
                target.codelistItem = null;
                if (mergedCodelistItem!= null) {
                    List<CTCodelistPropertyTypeuniqueCodelistIteml = target.getCodelistItem();
                    uniqueCodelistIteml.addAll(mergedCodelistItem);
                }
            }
        }
    }
    public void setCodelistItem(List<CTCodelistPropertyTypevalue) {
        this. = null;
        List<CTCodelistPropertyTypedraftl = this.getCodelistItem();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (CTCodelistPropertyType valuevalues) {
                getCodelistItem().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getCodelistItem().addAll(values);
        }
        return this;
    }
        setCodelistItem(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
        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 CTCodelistCatalogueType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public CTCodelistCatalogueType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X