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 AnchorType complex type.

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

 <complexType name="AnchorType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ARElementType">
       <sequence>
         <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AnchorType", propOrder = {
     "enabled"
 })
     ScreenAnchorType.class,
     ARAnchorType.class
 })
 public abstract class AnchorType
     extends ARElementType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected Boolean enabled;

    
Gets the value of the enabled property.

Returns:
possible object is
 
     public Boolean isEnabled() {
         return ;
     }

    
Sets the value of the enabled property.

Parameters:
value allowed object is
 
     public void setEnabled(Boolean 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);
        {
            Boolean theEnabled;
            theEnabled = this.isEnabled();
            strategy.appendField(locatorthis"enabled"buffertheEnabled);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AnchorType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final AnchorType that = ((AnchorTypeobject);
        {
            Boolean lhsEnabled;
            lhsEnabled = this.isEnabled();
            Boolean rhsEnabled;
            rhsEnabled = that.isEnabled();
            if (!strategy.equals(LocatorUtils.property(thisLocator"enabled"lhsEnabled), LocatorUtils.property(thatLocator"enabled"rhsEnabled), lhsEnabledrhsEnabled)) {
                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);
        {
            Boolean theEnabled;
            theEnabled = this.isEnabled();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"enabled"theEnabled), currentHashCodetheEnabled);
        }
        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) {
        if (null == target) {
            throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
        }
        super.copyTo(locatortargetstrategy);
        if (target instanceof AnchorType) {
            final AnchorType copy = ((AnchorTypetarget);
            if (this.!= null) {
                Boolean sourceEnabled;
                sourceEnabled = this.isEnabled();
                Boolean copyEnabled = ((Booleanstrategy.copy(LocatorUtils.property(locator"enabled"sourceEnabled), sourceEnabled));
                copy.setEnabled(copyEnabled);
            } else {
                copy.enabled = null;
            }
        }
        return target;
    }
    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 AnchorType) {
            final AnchorType target = this;
            final AnchorType leftObject = ((AnchorTypeleft);
            final AnchorType rightObject = ((AnchorTyperight);
            {
                Boolean lhsEnabled;
                lhsEnabled = leftObject.isEnabled();
                Boolean rhsEnabled;
                rhsEnabled = rightObject.isEnabled();
                Boolean mergedEnabled = ((Booleanstrategy.merge(LocatorUtils.property(leftLocator"enabled"lhsEnabled), LocatorUtils.property(rightLocator"enabled"rhsEnabled), lhsEnabledrhsEnabled));
                target.setEnabled(mergedEnabled);
            }
        }
    }
    public AnchorType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    @Override
    public AnchorType withId(String value) {
        setId(value);
        return this;
    }
New to GrepCode? Check out our FAQ X