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: 2010.09.03 at 10:11:56 AM MESZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
 import java.util.List;

Java class for AvailableLayersType complex type.

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

 <complexType name="AvailableLayersType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Layer" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AvailableLayersType", propOrder = {
     "layer"
 })
 public class AvailableLayersType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Layer", required = true)
     protected List<Stringlayer;

    
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<StringgetLayer() {
         if ( == null) {
              = new ArrayList<String>();
         }
         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) {
        {
            List<StringtheLayer;
            theLayer = this.getLayer();
            strategy.appendField(locatorthis"layer"buffertheLayer);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AvailableLayersType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final AvailableLayersType that = ((AvailableLayersTypeobject);
        {
            List<StringlhsLayer;
            lhsLayer = this.getLayer();
            List<StringrhsLayer;
            rhsLayer = that.getLayer();
            if (!strategy.equals(LocatorUtils.property(thisLocator"layer"lhsLayer), LocatorUtils.property(thatLocator"layer"rhsLayer), lhsLayerrhsLayer)) {
                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<StringtheLayer;
            theLayer = this.getLayer();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"layer"theLayer), currentHashCodetheLayer);
        }
        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 AvailableLayersType) {
            final AvailableLayersType copy = ((AvailableLayersTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<StringsourceLayer;
                sourceLayer = this.getLayer();
                @SuppressWarnings("unchecked")
                List<StringcopyLayer = ((List<String> ) strategy.copy(LocatorUtils.property(locator"layer"sourceLayer), sourceLayer));
                copy.layer = null;
                List<StringuniqueLayerl = copy.getLayer();
                uniqueLayerl.addAll(copyLayer);
            } else {
                copy.layer = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new AvailableLayersType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof AvailableLayersType) {
            final AvailableLayersType target = this;
            final AvailableLayersType leftObject = ((AvailableLayersTypeleft);
            final AvailableLayersType rightObject = ((AvailableLayersTyperight);
            {
                List<StringlhsLayer;
                lhsLayer = leftObject.getLayer();
                List<StringrhsLayer;
                rhsLayer = rightObject.getLayer();
                target.layer = null;
                List<StringuniqueLayerl = target.getLayer();
                uniqueLayerl.addAll(((List<String> ) strategy.merge(LocatorUtils.property(leftLocator"layer"lhsLayer), LocatorUtils.property(rightLocator"layer"rhsLayer), lhsLayerrhsLayer)));
            }
        }
    }
    public void setLayer(List<Stringvalue) {
        List<Stringdraftl = this.getLayer();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X