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

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

 <complexType name="SelectedConditionType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ConditionType">
       <sequence>
         <element name="listener" minOccurs="0">
           <simpleType>
             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
               <enumeration value="feature"/>
               <enumeration value="anchor"/>
             </restriction>
           </simpleType>
         </element>
         <element name="selected" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "SelectedConditionType", propOrder = {
     "listener",
     "selected"
 })
 public class SelectedConditionType
     extends ConditionType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected String listener;
     protected boolean selected;

    
Gets the value of the listener property.

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

    
Sets the value of the listener property.

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

    
Gets the value of the selected property.
    public boolean isSelected() {
        return ;
    }

    
Sets the value of the selected property.
    public void setSelected(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);
        {
            String theListener;
            theListener = this.getListener();
            strategy.appendField(locatorthis"listener"buffertheListener);
        }
        {
            boolean theSelected;
            theSelected = this.isSelected();
            strategy.appendField(locatorthis"selected"buffertheSelected);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof SelectedConditionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final SelectedConditionType that = ((SelectedConditionTypeobject);
        {
            String lhsListener;
            lhsListener = this.getListener();
            String rhsListener;
            rhsListener = that.getListener();
            if (!strategy.equals(LocatorUtils.property(thisLocator"listener"lhsListener), LocatorUtils.property(thatLocator"listener"rhsListener), lhsListenerrhsListener)) {
                return false;
            }
        }
        {
            boolean lhsSelected;
            lhsSelected = this.isSelected();
            boolean rhsSelected;
            rhsSelected = that.isSelected();
            if (!strategy.equals(LocatorUtils.property(thisLocator"selected"lhsSelected), LocatorUtils.property(thatLocator"selected"rhsSelected), lhsSelectedrhsSelected)) {
                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 theListener;
            theListener = this.getListener();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"listener"theListener), currentHashCodetheListener);
        }
        {
            boolean theSelected;
            theSelected = this.isSelected();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"selected"theSelected), currentHashCodetheSelected);
        }
        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 SelectedConditionType) {
            final SelectedConditionType copy = ((SelectedConditionTypedraftCopy);
            if (this.!= null) {
                String sourceListener;
                sourceListener = this.getListener();
                String copyListener = ((Stringstrategy.copy(LocatorUtils.property(locator"listener"sourceListener), sourceListener));
                copy.setListener(copyListener);
            } else {
                copy.listener = null;
            }
            {
                boolean sourceSelected;
                sourceSelected = this.isSelected();
                boolean copySelected = strategy.copy(LocatorUtils.property(locator"selected"sourceSelected), sourceSelected);
                copy.setSelected(copySelected);
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new SelectedConditionType();
    }
    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 SelectedConditionType) {
            final SelectedConditionType target = this;
            final SelectedConditionType leftObject = ((SelectedConditionTypeleft);
            final SelectedConditionType rightObject = ((SelectedConditionTyperight);
            {
                String lhsListener;
                lhsListener = leftObject.getListener();
                String rhsListener;
                rhsListener = rightObject.getListener();
                String mergedListener = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"listener"lhsListener), LocatorUtils.property(rightLocator"listener"rhsListener), lhsListenerrhsListener));
                target.setListener(mergedListener);
            }
            {
                boolean lhsSelected;
                lhsSelected = leftObject.isSelected();
                boolean rhsSelected;
                rhsSelected = rightObject.isSelected();
                boolean mergedSelected = ((booleanstrategy.merge(LocatorUtils.property(leftLocator"selected"lhsSelected), LocatorUtils.property(rightLocator"selected"rhsSelected), lhsSelectedrhsSelected));
                target.setSelected(mergedSelected);
            }
        }
    }
    public SelectedConditionType withListener(String value) {
        setListener(value);
        return this;
    }
    public SelectedConditionType withSelected(boolean value) {
        setSelected(value);
        return this;
    }
    @Override
    public SelectedConditionType withId(String value) {
        setId(value);
        return this;
    }
New to GrepCode? Check out our FAQ X