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;

Java class for LayerType complex type.

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

 <complexType name="LayerType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Layer" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="Style" type="{http://www.opengis.net/xls}StyleType" minOccurs="0"/>
                 </sequence>
                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
       <attribute name="filter" use="required">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="Include"/>
             <enumeration value="Exclude"/>
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "LayerType", propOrder = {
     "layer"
 })
 public class LayerType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Layer", required = true)
     protected List<LayerType.Layerlayer;
     @XmlAttribute(name = "filter", required = true)
     protected String filter;

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

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

    getLayer().add(newItem);
 

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

    public List<LayerType.LayergetLayer() {
        if ( == null) {
             = new ArrayList<LayerType.Layer>();
        }
        return this.;
    }

    
Gets the value of the filter property.

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

    
Sets the value of the filter property.

Parameters:
value allowed object is
    public void setFilter(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) {
        {
            List<LayerType.LayertheLayer;
            theLayer = this.getLayer();
            strategy.appendField(locatorthis"layer"buffertheLayer);
        }
        {
            String theFilter;
            theFilter = this.getFilter();
            strategy.appendField(locatorthis"filter"buffertheFilter);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof LayerType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final LayerType that = ((LayerTypeobject);
        {
            List<LayerType.LayerlhsLayer;
            lhsLayer = this.getLayer();
            List<LayerType.LayerrhsLayer;
            rhsLayer = that.getLayer();
            if (!strategy.equals(LocatorUtils.property(thisLocator"layer"lhsLayer), LocatorUtils.property(thatLocator"layer"rhsLayer), lhsLayerrhsLayer)) {
                return false;
            }
        }
        {
            String lhsFilter;
            lhsFilter = this.getFilter();
            String rhsFilter;
            rhsFilter = that.getFilter();
            if (!strategy.equals(LocatorUtils.property(thisLocator"filter"lhsFilter), LocatorUtils.property(thatLocator"filter"rhsFilter), lhsFilterrhsFilter)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            List<LayerType.LayertheLayer;
            theLayer = this.getLayer();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"layer"theLayer), currentHashCodetheLayer);
        }
        {
            String theFilter;
            theFilter = this.getFilter();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"filter"theFilter), currentHashCodetheFilter);
        }
        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);
        if (draftCopy instanceof LayerType) {
            final LayerType copy = ((LayerTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<LayerType.LayersourceLayer;
                sourceLayer = this.getLayer();
                @SuppressWarnings("unchecked")
                List<LayerType.LayercopyLayer = ((List<LayerType.Layer> ) strategy.copy(LocatorUtils.property(locator"layer"sourceLayer), sourceLayer));
                copy.layer = null;
                List<LayerType.LayeruniqueLayerl = copy.getLayer();
                uniqueLayerl.addAll(copyLayer);
            } else {
                copy.layer = null;
            }
            if (this.!= null) {
                String sourceFilter;
                sourceFilter = this.getFilter();
                String copyFilter = ((Stringstrategy.copy(LocatorUtils.property(locator"filter"sourceFilter), sourceFilter));
                copy.setFilter(copyFilter);
            } else {
                copy.filter = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new LayerType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof LayerType) {
            final LayerType target = this;
            final LayerType leftObject = ((LayerTypeleft);
            final LayerType rightObject = ((LayerTyperight);
            {
                List<LayerType.LayerlhsLayer;
                lhsLayer = leftObject.getLayer();
                List<LayerType.LayerrhsLayer;
                rhsLayer = rightObject.getLayer();
                target.layer = null;
                List<LayerType.LayeruniqueLayerl = target.getLayer();
                uniqueLayerl.addAll(((List<LayerType.Layer> ) strategy.merge(LocatorUtils.property(leftLocator"layer"lhsLayer), LocatorUtils.property(rightLocator"layer"rhsLayer), lhsLayerrhsLayer)));
            }
            {
                String lhsFilter;
                lhsFilter = leftObject.getFilter();
                String rhsFilter;
                rhsFilter = rightObject.getFilter();
                target.setFilter(((Stringstrategy.merge(LocatorUtils.property(leftLocator"filter"lhsFilter), LocatorUtils.property(rightLocator"filter"rhsFilter), lhsFilterrhsFilter)));
            }
        }
    }
    public void setLayer(List<LayerType.Layervalue) {
        List<LayerType.Layerdraftl = this.getLayer();
        draftl.addAll(value);
    }


    

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Style" type="{http://www.opengis.net/xls}StyleType" minOccurs="0"/>
       </sequence>
       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "style"
    })
    public static class Layer
        implements CloneableCopyToEqualsHashCodeMergeFromToString
    {
        @XmlElement(name = "Style")
        protected StyleType style;
        @XmlAttribute(name = "name", required = true)
        protected String name;

        
Gets the value of the style property.

Returns:
possible object is
        public StyleType getStyle() {
            return ;
        }

        
Sets the value of the style property.

Parameters:
value allowed object is
        public void setStyle(StyleType value) {
            this. = value;
        }

        
Gets the value of the name property.

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

        
Sets the value of the name property.

Parameters:
value allowed object is
        public void setName(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) {
            {
                StyleType theStyle;
                theStyle = this.getStyle();
                strategy.appendField(locatorthis"style"buffertheStyle);
            }
            {
                String theName;
                theName = this.getName();
                strategy.appendField(locatorthis"name"buffertheName);
            }
            return buffer;
        }
        public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
            if (!(object instanceof LayerType.Layer)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final LayerType.Layer that = ((LayerType.Layerobject);
            {
                StyleType lhsStyle;
                lhsStyle = this.getStyle();
                StyleType rhsStyle;
                rhsStyle = that.getStyle();
                if (!strategy.equals(LocatorUtils.property(thisLocator"style"lhsStyle), LocatorUtils.property(thatLocator"style"rhsStyle), lhsStylerhsStyle)) {
                    return false;
                }
            }
            {
                String lhsName;
                lhsName = this.getName();
                String rhsName;
                rhsName = that.getName();
                if (!strategy.equals(LocatorUtils.property(thisLocator"name"lhsName), LocatorUtils.property(thatLocator"name"rhsName), lhsNamerhsName)) {
                    return false;
                }
            }
            return true;
        }
        public boolean equals(Object object) {
            final EqualsStrategy strategy = .;
            return equals(nullnullobjectstrategy);
        }
        public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
            int currentHashCode = 1;
            {
                StyleType theStyle;
                theStyle = this.getStyle();
                currentHashCode = strategy.hashCode(LocatorUtils.property(locator"style"theStyle), currentHashCodetheStyle);
            }
            {
                String theName;
                theName = this.getName();
                currentHashCode = strategy.hashCode(LocatorUtils.property(locator"name"theName), currentHashCodetheName);
            }
            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);
            if (draftCopy instanceof LayerType.Layer) {
                final LayerType.Layer copy = ((LayerType.LayerdraftCopy);
                if (this.!= null) {
                    StyleType sourceStyle;
                    sourceStyle = this.getStyle();
                    StyleType copyStyle = ((StyleTypestrategy.copy(LocatorUtils.property(locator"style"sourceStyle), sourceStyle));
                    copy.setStyle(copyStyle);
                } else {
                    copy.style = null;
                }
                if (this.!= null) {
                    String sourceName;
                    sourceName = this.getName();
                    String copyName = ((Stringstrategy.copy(LocatorUtils.property(locator"name"sourceName), sourceName));
                    copy.setName(copyName);
                } else {
                    copy.name = null;
                }
            }
            return draftCopy;
        }
        public Object createNewInstance() {
            return new LayerType.Layer();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof LayerType.Layer) {
                final LayerType.Layer target = this;
                final LayerType.Layer leftObject = ((LayerType.Layerleft);
                final LayerType.Layer rightObject = ((LayerType.Layerright);
                {
                    StyleType lhsStyle;
                    lhsStyle = leftObject.getStyle();
                    StyleType rhsStyle;
                    rhsStyle = rightObject.getStyle();
                    target.setStyle(((StyleTypestrategy.merge(LocatorUtils.property(leftLocator"style"lhsStyle), LocatorUtils.property(rightLocator"style"rhsStyle), lhsStylerhsStyle)));
                }
                {
                    String lhsName;
                    lhsName = leftObject.getName();
                    String rhsName;
                    rhsName = rightObject.getName();
                    target.setName(((Stringstrategy.merge(LocatorUtils.property(leftLocator"name"lhsName), LocatorUtils.property(rightLocator"name"rhsName), lhsNamerhsName)));
                }
            }
        }
    }
New to GrepCode? Check out our FAQ X