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, vhudson-jaxb-ri-2.1-2 
  // 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: 2011.02.20 at 01:29:24 PM MEZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
 import java.util.List;
Defines POI selection criteria as a list of properties

Java class for POIPropertiesType complex type.

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

 <complexType name="POIPropertiesType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractPOISelectionCriteriaType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}_POIProperty" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="directoryType" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "POIPropertiesType", propOrder = {
     "poiProperty"
 })
     POIProperties.class
 })
 public class POIPropertiesType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElementRef(name = "_POIProperty", namespace = "http://www.opengis.net/xls", type = APOIProperty.class)
     protected List<JAXBElement<?>> poiProperty;
     @XmlAttribute(name = "directoryType")
     protected String directoryType;

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

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

    getPOIProperty().add(newItem);
 

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

    public List<JAXBElement<?>> getPOIProperty() {
        if ( == null) {
             = new ArrayList<JAXBElement<?>>();
        }
        return this.;
    }

    
Gets the value of the directoryType property.

Returns:
possible object is
    public String getDirectoryType() {
        return ;
    }

    
Sets the value of the directoryType property.

Parameters:
value allowed object is
    public void setDirectoryType(String value) {
        this. = value;
    }
    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<JAXBElement<?>> thePOIProperty;
            thePOIProperty = this.getPOIProperty();
            strategy.appendField(locatorthis"poiProperty"bufferthePOIProperty);
        }
        {
            String theDirectoryType;
            theDirectoryType = this.getDirectoryType();
            strategy.appendField(locatorthis"directoryType"buffertheDirectoryType);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof POIPropertiesType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final POIPropertiesType that = ((POIPropertiesTypeobject);
        {
            List<JAXBElement<?>> lhsPOIProperty;
            lhsPOIProperty = this.getPOIProperty();
            List<JAXBElement<?>> rhsPOIProperty;
            rhsPOIProperty = that.getPOIProperty();
            if (!strategy.equals(LocatorUtils.property(thisLocator"poiProperty"lhsPOIProperty), LocatorUtils.property(thatLocator"poiProperty"rhsPOIProperty), lhsPOIPropertyrhsPOIProperty)) {
                return false;
            }
        }
        {
            String lhsDirectoryType;
            lhsDirectoryType = this.getDirectoryType();
            String rhsDirectoryType;
            rhsDirectoryType = that.getDirectoryType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"directoryType"lhsDirectoryType), LocatorUtils.property(thatLocator"directoryType"rhsDirectoryType), lhsDirectoryTyperhsDirectoryType)) {
                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<JAXBElement<?>> thePOIProperty;
            thePOIProperty = this.getPOIProperty();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"poiProperty"thePOIProperty), currentHashCodethePOIProperty);
        }
        {
            String theDirectoryType;
            theDirectoryType = this.getDirectoryType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"directoryType"theDirectoryType), currentHashCodetheDirectoryType);
        }
        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 POIPropertiesType) {
            final POIPropertiesType copy = ((POIPropertiesTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<JAXBElement<?>> sourcePOIProperty;
                sourcePOIProperty = this.getPOIProperty();
                @SuppressWarnings("unchecked")
                List<JAXBElement<?>> copyPOIProperty = ((List<JAXBElement<?>> ) strategy.copy(LocatorUtils.property(locator"poiProperty"sourcePOIProperty), sourcePOIProperty));
                copy.poiProperty = null;
                List<JAXBElement<?>> uniquePOIPropertyl = copy.getPOIProperty();
                uniquePOIPropertyl.addAll(copyPOIProperty);
            } else {
                copy.poiProperty = null;
            }
            if (this.!= null) {
                String sourceDirectoryType;
                sourceDirectoryType = this.getDirectoryType();
                String copyDirectoryType = ((Stringstrategy.copy(LocatorUtils.property(locator"directoryType"sourceDirectoryType), sourceDirectoryType));
                copy.setDirectoryType(copyDirectoryType);
            } else {
                copy.directoryType = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new POIPropertiesType();
    }
    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 POIPropertiesType) {
            final POIPropertiesType target = this;
            final POIPropertiesType leftObject = ((POIPropertiesTypeleft);
            final POIPropertiesType rightObject = ((POIPropertiesTyperight);
            {
                List<JAXBElement<?>> lhsPOIProperty;
                lhsPOIProperty = leftObject.getPOIProperty();
                List<JAXBElement<?>> rhsPOIProperty;
                rhsPOIProperty = rightObject.getPOIProperty();
                target.poiProperty = null;
                List<JAXBElement<?>> uniquePOIPropertyl = target.getPOIProperty();
                uniquePOIPropertyl.addAll(((List<JAXBElement<?>> ) strategy.merge(LocatorUtils.property(leftLocator"poiProperty"lhsPOIProperty), LocatorUtils.property(rightLocator"poiProperty"rhsPOIProperty), lhsPOIPropertyrhsPOIProperty)));
            }
            {
                String lhsDirectoryType;
                lhsDirectoryType = leftObject.getDirectoryType();
                String rhsDirectoryType;
                rhsDirectoryType = rightObject.getDirectoryType();
                target.setDirectoryType(((Stringstrategy.merge(LocatorUtils.property(leftLocator"directoryType"lhsDirectoryType), LocatorUtils.property(rightLocator"directoryType"rhsDirectoryType), lhsDirectoryTyperhsDirectoryType)));
            }
        }
    }
    public void setPOIProperty(List<JAXBElement<?>> value) {
        List<JAXBElement<?>> draftl = this.getPOIProperty();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X