Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
  // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
  // Generiert: 2013.01.31 um 01:29:25 AM CET 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
 import java.util.List;

Java-Klasse für AvailableFormatsType complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

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

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

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

    getFormat().add(newItem);
 

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

 
     public List<StringgetFormat() {
         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<StringtheFormat;
            theFormat = this.getFormat();
            strategy.appendField(locatorthis"format"buffertheFormat);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AvailableFormatsType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final AvailableFormatsType that = ((AvailableFormatsTypeobject);
        {
            List<StringlhsFormat;
            lhsFormat = this.getFormat();
            List<StringrhsFormat;
            rhsFormat = that.getFormat();
            if (!strategy.equals(LocatorUtils.property(thisLocator"format"lhsFormat), LocatorUtils.property(thatLocator"format"rhsFormat), lhsFormatrhsFormat)) {
                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<StringtheFormat;
            theFormat = this.getFormat();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"format"theFormat), currentHashCodetheFormat);
        }
        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 AvailableFormatsType) {
            final AvailableFormatsType copy = ((AvailableFormatsTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<StringsourceFormat;
                sourceFormat = this.getFormat();
                @SuppressWarnings("unchecked")
                List<StringcopyFormat = ((List<String> ) strategy.copy(LocatorUtils.property(locator"format"sourceFormat), sourceFormat));
                copy.format = null;
                List<StringuniqueFormatl = copy.getFormat();
                uniqueFormatl.addAll(copyFormat);
            } else {
                copy.format = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new AvailableFormatsType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof AvailableFormatsType) {
            final AvailableFormatsType target = this;
            final AvailableFormatsType leftObject = ((AvailableFormatsTypeleft);
            final AvailableFormatsType rightObject = ((AvailableFormatsTyperight);
            {
                List<StringlhsFormat;
                lhsFormat = leftObject.getFormat();
                List<StringrhsFormat;
                rhsFormat = rightObject.getFormat();
                target.format = null;
                List<StringuniqueFormatl = target.getFormat();
                uniqueFormatl.addAll(((List<String> ) strategy.merge(LocatorUtils.property(leftLocator"format"lhsFormat), LocatorUtils.property(rightLocator"format"rhsFormat), lhsFormatrhsFormat)));
            }
        }
    }
    public void setFormat(List<Stringvalue) {
        List<Stringdraftl = this.getFormat();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X