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;
 

Java class for ContentType complex type.

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

 <complexType name="ContentType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element name="Data" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="URL" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </choice>
       <attribute name="format" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="width" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
       <attribute name="height" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ContentType", propOrder = {
     "data",
     "url"
 })
 public class ContentType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Data")
     protected String data;
     @XmlElement(name = "URL")
     protected String url;
     @XmlAttribute(name = "format", required = true)
     protected String format;
     @XmlAttribute(name = "width", required = true)
     protected BigInteger width;
     @XmlAttribute(name = "height", required = true)
     protected BigInteger height;

    
Gets the value of the data property.

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

    
Sets the value of the data property.

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

    
Gets the value of the url property.

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

    
Sets the value of the url property.

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

    
Gets the value of the format property.

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

    
Sets the value of the format property.

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

    
Gets the value of the width property.

Returns:
possible object is
    public BigInteger getWidth() {
        return ;
    }

    
Sets the value of the width property.

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

    
Gets the value of the height property.

Returns:
possible object is
    public BigInteger getHeight() {
        return ;
    }

    
Sets the value of the height property.

Parameters:
value allowed object is
    public void setHeight(BigInteger 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) {
        {
            String theData;
            theData = this.getData();
            strategy.appendField(locatorthis"data"buffertheData);
        }
        {
            String theURL;
            theURL = this.getURL();
            strategy.appendField(locatorthis"url"buffertheURL);
        }
        {
            String theFormat;
            theFormat = this.getFormat();
            strategy.appendField(locatorthis"format"buffertheFormat);
        }
        {
            BigInteger theWidth;
            theWidth = this.getWidth();
            strategy.appendField(locatorthis"width"buffertheWidth);
        }
        {
            BigInteger theHeight;
            theHeight = this.getHeight();
            strategy.appendField(locatorthis"height"buffertheHeight);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ContentType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final ContentType that = ((ContentTypeobject);
        {
            String lhsData;
            lhsData = this.getData();
            String rhsData;
            rhsData = that.getData();
            if (!strategy.equals(LocatorUtils.property(thisLocator"data"lhsData), LocatorUtils.property(thatLocator"data"rhsData), lhsDatarhsData)) {
                return false;
            }
        }
        {
            String lhsURL;
            lhsURL = this.getURL();
            String rhsURL;
            rhsURL = that.getURL();
            if (!strategy.equals(LocatorUtils.property(thisLocator"url"lhsURL), LocatorUtils.property(thatLocator"url"rhsURL), lhsURLrhsURL)) {
                return false;
            }
        }
        {
            String lhsFormat;
            lhsFormat = this.getFormat();
            String rhsFormat;
            rhsFormat = that.getFormat();
            if (!strategy.equals(LocatorUtils.property(thisLocator"format"lhsFormat), LocatorUtils.property(thatLocator"format"rhsFormat), lhsFormatrhsFormat)) {
                return false;
            }
        }
        {
            BigInteger lhsWidth;
            lhsWidth = this.getWidth();
            BigInteger rhsWidth;
            rhsWidth = that.getWidth();
            if (!strategy.equals(LocatorUtils.property(thisLocator"width"lhsWidth), LocatorUtils.property(thatLocator"width"rhsWidth), lhsWidthrhsWidth)) {
                return false;
            }
        }
        {
            BigInteger lhsHeight;
            lhsHeight = this.getHeight();
            BigInteger rhsHeight;
            rhsHeight = that.getHeight();
            if (!strategy.equals(LocatorUtils.property(thisLocator"height"lhsHeight), LocatorUtils.property(thatLocator"height"rhsHeight), lhsHeightrhsHeight)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            String theData;
            theData = this.getData();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"data"theData), currentHashCodetheData);
        }
        {
            String theURL;
            theURL = this.getURL();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"url"theURL), currentHashCodetheURL);
        }
        {
            String theFormat;
            theFormat = this.getFormat();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"format"theFormat), currentHashCodetheFormat);
        }
        {
            BigInteger theWidth;
            theWidth = this.getWidth();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"width"theWidth), currentHashCodetheWidth);
        }
        {
            BigInteger theHeight;
            theHeight = this.getHeight();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"height"theHeight), currentHashCodetheHeight);
        }
        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 ContentType) {
            final ContentType copy = ((ContentTypedraftCopy);
            if (this.!= null) {
                String sourceData;
                sourceData = this.getData();
                String copyData = ((Stringstrategy.copy(LocatorUtils.property(locator"data"sourceData), sourceData));
                copy.setData(copyData);
            } else {
                copy.data = null;
            }
            if (this.!= null) {
                String sourceURL;
                sourceURL = this.getURL();
                String copyURL = ((Stringstrategy.copy(LocatorUtils.property(locator"url"sourceURL), sourceURL));
                copy.setURL(copyURL);
            } else {
                copy.url = null;
            }
            if (this.!= null) {
                String sourceFormat;
                sourceFormat = this.getFormat();
                String copyFormat = ((Stringstrategy.copy(LocatorUtils.property(locator"format"sourceFormat), sourceFormat));
                copy.setFormat(copyFormat);
            } else {
                copy.format = null;
            }
            if (this.!= null) {
                BigInteger sourceWidth;
                sourceWidth = this.getWidth();
                BigInteger copyWidth = ((BigIntegerstrategy.copy(LocatorUtils.property(locator"width"sourceWidth), sourceWidth));
                copy.setWidth(copyWidth);
            } else {
                copy.width = null;
            }
            if (this.!= null) {
                BigInteger sourceHeight;
                sourceHeight = this.getHeight();
                BigInteger copyHeight = ((BigIntegerstrategy.copy(LocatorUtils.property(locator"height"sourceHeight), sourceHeight));
                copy.setHeight(copyHeight);
            } else {
                copy.height = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ContentType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof ContentType) {
            final ContentType target = this;
            final ContentType leftObject = ((ContentTypeleft);
            final ContentType rightObject = ((ContentTyperight);
            {
                String lhsData;
                lhsData = leftObject.getData();
                String rhsData;
                rhsData = rightObject.getData();
                target.setData(((Stringstrategy.merge(LocatorUtils.property(leftLocator"data"lhsData), LocatorUtils.property(rightLocator"data"rhsData), lhsDatarhsData)));
            }
            {
                String lhsURL;
                lhsURL = leftObject.getURL();
                String rhsURL;
                rhsURL = rightObject.getURL();
                target.setURL(((Stringstrategy.merge(LocatorUtils.property(leftLocator"url"lhsURL), LocatorUtils.property(rightLocator"url"rhsURL), lhsURLrhsURL)));
            }
            {
                String lhsFormat;
                lhsFormat = leftObject.getFormat();
                String rhsFormat;
                rhsFormat = rightObject.getFormat();
                target.setFormat(((Stringstrategy.merge(LocatorUtils.property(leftLocator"format"lhsFormat), LocatorUtils.property(rightLocator"format"rhsFormat), lhsFormatrhsFormat)));
            }
            {
                BigInteger lhsWidth;
                lhsWidth = leftObject.getWidth();
                BigInteger rhsWidth;
                rhsWidth = rightObject.getWidth();
                target.setWidth(((BigIntegerstrategy.merge(LocatorUtils.property(leftLocator"width"lhsWidth), LocatorUtils.property(rightLocator"width"rhsWidth), lhsWidthrhsWidth)));
            }
            {
                BigInteger lhsHeight;
                lhsHeight = leftObject.getHeight();
                BigInteger rhsHeight;
                rhsHeight = rightObject.getHeight();
                target.setHeight(((BigIntegerstrategy.merge(LocatorUtils.property(leftLocator"height"lhsHeight), LocatorUtils.property(rightLocator"height"rhsHeight), lhsHeightrhsHeight)));
            }
        }
    }
New to GrepCode? Check out our FAQ X