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

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

 <complexType name="ARElementType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ARElementType")
     FeatureType.class,
     TrackerType.class,
     AnchorType.class,
     VisualAssetType.class,
     ConditionType.class,
     ScalingModeType.class
 })
 public abstract class ARElementType implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "id")
     @XmlID
     @XmlSchemaType(name = "ID")
     protected String id;

    
Gets the value of the id property.

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

    
Sets the value of the id property.

Parameters:
value allowed object is
 
     public void setId(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) {
        {
            String theId;
            theId = this.getId();
            strategy.appendField(locatorthis"id"buffertheId);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ARElementType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final ARElementType that = ((ARElementTypeobject);
        {
            String lhsId;
            lhsId = this.getId();
            String rhsId;
            rhsId = that.getId();
            if (!strategy.equals(LocatorUtils.property(thisLocator"id"lhsId), LocatorUtils.property(thatLocator"id"rhsId), lhsIdrhsId)) {
                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 theId;
            theId = this.getId();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"id"theId), currentHashCodetheId);
        }
        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.");
        }
        if (target instanceof ARElementType) {
            final ARElementType copy = ((ARElementTypetarget);
            if (this.!= null) {
                String sourceId;
                sourceId = this.getId();
                String copyId = ((Stringstrategy.copy(LocatorUtils.property(locator"id"sourceId), sourceId));
                copy.setId(copyId);
            } else {
                copy.id = null;
            }
        }
        return target;
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof ARElementType) {
            final ARElementType target = this;
            final ARElementType leftObject = ((ARElementTypeleft);
            final ARElementType rightObject = ((ARElementTyperight);
            {
                String lhsId;
                lhsId = leftObject.getId();
                String rhsId;
                rhsId = rightObject.getId();
                String mergedId = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"id"lhsId), LocatorUtils.property(rightLocator"id"rhsId), lhsIdrhsId));
                target.setId(mergedId);
            }
        }
    }
    public ARElementType withId(String value) {
        setId(value);
        return this;
    }
New to GrepCode? Check out our FAQ X