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, v2.2.11 
  // 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: 2015.04.16 at 07:22:02 AM CEST 
  //
  
  
  package net.opengis.arml.v_2_0;
 

Java class for FillType complex type.

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

 <complexType name="FillType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}VisualAsset2DType">
       <sequence>
         <element name="style" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="class" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "FillType", propOrder = {
     "style",
     "clazz"
 })
 public class FillType
     extends VisualAsset2DType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected String style;
     @XmlElement(name = "class")
     protected String clazz;

    
Gets the value of the style property.

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

    
Sets the value of the style property.

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

    
Gets the value of the clazz property.

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

    
Sets the value of the clazz property.

Parameters:
value allowed object is
    public void setClazz(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) {
        super.appendFields(locatorbufferstrategy);
        {
            String theStyle;
            theStyle = this.getStyle();
            strategy.appendField(locatorthis"style"buffertheStyle);
        }
        {
            String theClazz;
            theClazz = this.getClazz();
            strategy.appendField(locatorthis"clazz"buffertheClazz);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof FillType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final FillType that = ((FillTypeobject);
        {
            String lhsStyle;
            lhsStyle = this.getStyle();
            String rhsStyle;
            rhsStyle = that.getStyle();
            if (!strategy.equals(LocatorUtils.property(thisLocator"style"lhsStyle), LocatorUtils.property(thatLocator"style"rhsStyle), lhsStylerhsStyle)) {
                return false;
            }
        }
        {
            String lhsClazz;
            lhsClazz = this.getClazz();
            String rhsClazz;
            rhsClazz = that.getClazz();
            if (!strategy.equals(LocatorUtils.property(thisLocator"clazz"lhsClazz), LocatorUtils.property(thatLocator"clazz"rhsClazz), lhsClazzrhsClazz)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            String theStyle;
            theStyle = this.getStyle();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"style"theStyle), currentHashCodetheStyle);
        }
        {
            String theClazz;
            theClazz = this.getClazz();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"clazz"theClazz), currentHashCodetheClazz);
        }
        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);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof FillType) {
            final FillType copy = ((FillTypedraftCopy);
            if (this.!= null) {
                String sourceStyle;
                sourceStyle = this.getStyle();
                String copyStyle = ((Stringstrategy.copy(LocatorUtils.property(locator"style"sourceStyle), sourceStyle));
                copy.setStyle(copyStyle);
            } else {
                copy.style = null;
            }
            if (this.!= null) {
                String sourceClazz;
                sourceClazz = this.getClazz();
                String copyClazz = ((Stringstrategy.copy(LocatorUtils.property(locator"clazz"sourceClazz), sourceClazz));
                copy.setClazz(copyClazz);
            } else {
                copy.clazz = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new FillType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof FillType) {
            final FillType target = this;
            final FillType leftObject = ((FillTypeleft);
            final FillType rightObject = ((FillTyperight);
            {
                String lhsStyle;
                lhsStyle = leftObject.getStyle();
                String rhsStyle;
                rhsStyle = rightObject.getStyle();
                String mergedStyle = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"style"lhsStyle), LocatorUtils.property(rightLocator"style"rhsStyle), lhsStylerhsStyle));
                target.setStyle(mergedStyle);
            }
            {
                String lhsClazz;
                lhsClazz = leftObject.getClazz();
                String rhsClazz;
                rhsClazz = rightObject.getClazz();
                String mergedClazz = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"clazz"lhsClazz), LocatorUtils.property(rightLocator"clazz"rhsClazz), lhsClazzrhsClazz));
                target.setClazz(mergedClazz);
            }
        }
    }
    public FillType withStyle(String value) {
        setStyle(value);
        return this;
    }
    public FillType withClazz(String value) {
        setClazz(value);
        return this;
    }
    @Override
    public FillType withWidth(String value) {
        setWidth(value);
        return this;
    }
    @Override
    public FillType withHeight(String value) {
        setHeight(value);
        return this;
    }
    @Override
    public FillType withOrientationMode(String value) {
        setOrientationMode(value);
        return this;
    }
    @Override
    public FillType withBackside(String value) {
        setBackside(value);
        return this;
    }
    @Override
    public FillType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    @Override
    public FillType withZOrder(Integer value) {
        setZOrder(value);
        return this;
    }
    @Override
        setConditions(value);
        return this;
    }
    @Override
    public FillType withOrientation(OrientationType value) {
        setOrientation(value);
        return this;
    }
    @Override
    public FillType withScalingMode(ScalingModeType value) {
        setScalingMode(value);
        return this;
    }
    @Override
    public FillType withId(String value) {
        setId(value);
        return this;
    }
New to GrepCode? Check out our FAQ X