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;
Defines the top element of an XML document representing a message.

Java-Klasse für XLSType complex type.

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

 <complexType name="XLSType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}_Header"/>
         <element ref="{http://www.opengis.net/xls}_Body" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
       <attribute ref="{http://www.opengis.net/xls}lang"/>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "XLSType", propOrder = {
     "header",
     "body"
 })
 public class XLSType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElementRef(name = "_Header", namespace = "http://www.opengis.net/xls", type = JAXBElement.class)
     protected JAXBElement<? extends AbstractHeaderTypeheader;
     @XmlElementRef(name = "_Body", namespace = "http://www.opengis.net/xls", type = JAXBElement.class)
     protected List<JAXBElement<? extends AbstractBodyType>> body;
     @XmlAttribute(name = "version", required = true)
     protected BigDecimal version;
     @XmlAttribute(name = "lang", namespace = "http://www.opengis.net/xls")
     @XmlSchemaType(name = "language")
     protected String lang;

    
Ruft den Wert der header-Eigenschaft ab.

Returns:
possible object is <> <> <>
 
     public JAXBElement<? extends AbstractHeaderTypegetHeader() {
         return ;
     }

    
Legt den Wert der header-Eigenschaft fest.

Parameters:
value allowed object is <> <> <>
    public void setHeader(JAXBElement<? extends AbstractHeaderTypevalue) {
        this. = value;
    }

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

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

    getBody().add(newItem);
 

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

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

    
Ruft den Wert der version-Eigenschaft ab.

Returns:
possible object is
    public BigDecimal getVersion() {
        return ;
    }

    
Legt den Wert der version-Eigenschaft fest.

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

    
Defines the preferred language used for formatting responses.

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

    
Legt den Wert der lang-Eigenschaft fest.

Parameters:
value allowed object is
    public void setLang(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) {
        {
            JAXBElement<? extends AbstractHeaderTypetheHeader;
            theHeader = this.getHeader();
            strategy.appendField(locatorthis"header"buffertheHeader);
        }
        {
            List<JAXBElement<? extends AbstractBodyType>> theBody;
            theBody = this.getBody();
            strategy.appendField(locatorthis"body"buffertheBody);
        }
        {
            BigDecimal theVersion;
            theVersion = this.getVersion();
            strategy.appendField(locatorthis"version"buffertheVersion);
        }
        {
            String theLang;
            theLang = this.getLang();
            strategy.appendField(locatorthis"lang"buffertheLang);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof XLSType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final XLSType that = ((XLSTypeobject);
        {
            JAXBElement<? extends AbstractHeaderTypelhsHeader;
            lhsHeader = this.getHeader();
            JAXBElement<? extends AbstractHeaderTyperhsHeader;
            rhsHeader = that.getHeader();
            if (!strategy.equals(LocatorUtils.property(thisLocator"header"lhsHeader), LocatorUtils.property(thatLocator"header"rhsHeader), lhsHeaderrhsHeader)) {
                return false;
            }
        }
        {
            List<JAXBElement<? extends AbstractBodyType>> lhsBody;
            lhsBody = this.getBody();
            List<JAXBElement<? extends AbstractBodyType>> rhsBody;
            rhsBody = that.getBody();
            if (!strategy.equals(LocatorUtils.property(thisLocator"body"lhsBody), LocatorUtils.property(thatLocator"body"rhsBody), lhsBodyrhsBody)) {
                return false;
            }
        }
        {
            BigDecimal lhsVersion;
            lhsVersion = this.getVersion();
            BigDecimal rhsVersion;
            rhsVersion = that.getVersion();
            if (!strategy.equals(LocatorUtils.property(thisLocator"version"lhsVersion), LocatorUtils.property(thatLocator"version"rhsVersion), lhsVersionrhsVersion)) {
                return false;
            }
        }
        {
            String lhsLang;
            lhsLang = this.getLang();
            String rhsLang;
            rhsLang = that.getLang();
            if (!strategy.equals(LocatorUtils.property(thisLocator"lang"lhsLang), LocatorUtils.property(thatLocator"lang"rhsLang), lhsLangrhsLang)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            JAXBElement<? extends AbstractHeaderTypetheHeader;
            theHeader = this.getHeader();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"header"theHeader), currentHashCodetheHeader);
        }
        {
            List<JAXBElement<? extends AbstractBodyType>> theBody;
            theBody = this.getBody();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"body"theBody), currentHashCodetheBody);
        }
        {
            BigDecimal theVersion;
            theVersion = this.getVersion();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"version"theVersion), currentHashCodetheVersion);
        }
        {
            String theLang;
            theLang = this.getLang();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"lang"theLang), currentHashCodetheLang);
        }
        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 XLSType) {
            final XLSType copy = ((XLSTypedraftCopy);
            if (this.!= null) {
                JAXBElement<? extends AbstractHeaderTypesourceHeader;
                sourceHeader = this.getHeader();
                @SuppressWarnings("unchecked")
                JAXBElement<? extends AbstractHeaderTypecopyHeader = ((JAXBElement<? extends AbstractHeaderType> ) strategy.copy(LocatorUtils.property(locator"header"sourceHeader), sourceHeader));
                copy.setHeader(copyHeader);
            } else {
                copy.header = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<JAXBElement<? extends AbstractBodyType>> sourceBody;
                sourceBody = this.getBody();
                @SuppressWarnings("unchecked")
                List<JAXBElement<? extends AbstractBodyType>> copyBody = ((List<JAXBElement<? extends AbstractBodyType>> ) strategy.copy(LocatorUtils.property(locator"body"sourceBody), sourceBody));
                copy.body = null;
                List<JAXBElement<? extends AbstractBodyType>> uniqueBodyl = copy.getBody();
                uniqueBodyl.addAll(copyBody);
            } else {
                copy.body = null;
            }
            if (this.!= null) {
                BigDecimal sourceVersion;
                sourceVersion = this.getVersion();
                BigDecimal copyVersion = ((BigDecimalstrategy.copy(LocatorUtils.property(locator"version"sourceVersion), sourceVersion));
                copy.setVersion(copyVersion);
            } else {
                copy.version = null;
            }
            if (this.!= null) {
                String sourceLang;
                sourceLang = this.getLang();
                String copyLang = ((Stringstrategy.copy(LocatorUtils.property(locator"lang"sourceLang), sourceLang));
                copy.setLang(copyLang);
            } else {
                copy.lang = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new XLSType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof XLSType) {
            final XLSType target = this;
            final XLSType leftObject = ((XLSTypeleft);
            final XLSType rightObject = ((XLSTyperight);
            {
                JAXBElement<? extends AbstractHeaderTypelhsHeader;
                lhsHeader = leftObject.getHeader();
                JAXBElement<? extends AbstractHeaderTyperhsHeader;
                rhsHeader = rightObject.getHeader();
                target.setHeader(((JAXBElement<? extends AbstractHeaderType> ) strategy.merge(LocatorUtils.property(leftLocator"header"lhsHeader), LocatorUtils.property(rightLocator"header"rhsHeader), lhsHeaderrhsHeader)));
            }
            {
                List<JAXBElement<? extends AbstractBodyType>> lhsBody;
                lhsBody = leftObject.getBody();
                List<JAXBElement<? extends AbstractBodyType>> rhsBody;
                rhsBody = rightObject.getBody();
                target.body = null;
                List<JAXBElement<? extends AbstractBodyType>> uniqueBodyl = target.getBody();
                uniqueBodyl.addAll(((List<JAXBElement<? extends AbstractBodyType>> ) strategy.merge(LocatorUtils.property(leftLocator"body"lhsBody), LocatorUtils.property(rightLocator"body"rhsBody), lhsBodyrhsBody)));
            }
            {
                BigDecimal lhsVersion;
                lhsVersion = leftObject.getVersion();
                BigDecimal rhsVersion;
                rhsVersion = rightObject.getVersion();
                target.setVersion(((BigDecimalstrategy.merge(LocatorUtils.property(leftLocator"version"lhsVersion), LocatorUtils.property(rightLocator"version"rhsVersion), lhsVersionrhsVersion)));
            }
            {
                String lhsLang;
                lhsLang = leftObject.getLang();
                String rhsLang;
                rhsLang = rightObject.getLang();
                target.setLang(((Stringstrategy.merge(LocatorUtils.property(leftLocator"lang"lhsLang), LocatorUtils.property(rightLocator"lang"rhsLang), lhsLangrhsLang)));
            }
        }
    }
    public void setBody(List<JAXBElement<? extends AbstractBodyType>> value) {
        List<JAXBElement<? extends AbstractBodyType>> draftl = this.getBody();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X