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;
 
 import java.util.List;

Java class for VisualAssetType complex type.

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

 <complexType name="VisualAssetType">
   <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"/>
         <element name="zOrder" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
         <element name="conditions" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element ref="{http://www.opengis.net/arml/2.0}Condition" maxOccurs="unbounded"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="Orientation" type="{http://www.opengis.net/arml/2.0}OrientationType" minOccurs="0"/>
         <element name="ScalingMode" type="{http://www.opengis.net/arml/2.0}ScalingModeType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "VisualAssetType", propOrder = {
     "enabled",
     "zOrder",
     "conditions",
     "orientation",
     "scalingMode"
 })
     VisualAsset2DType.class,
     ModelType.class
 })
 public abstract class VisualAssetType
     extends ARElementType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected Boolean enabled;
     protected Integer zOrder;
     protected VisualAssetType.Conditions conditions;
     @XmlElement(name = "Orientation")
     protected OrientationType orientation;
     @XmlElement(name = "ScalingMode")
     protected ScalingModeType scalingMode;

    
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;
    }

    
Gets the value of the zOrder property.

Returns:
possible object is
    public Integer getZOrder() {
        return ;
    }

    
Sets the value of the zOrder property.

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

    
Gets the value of the conditions property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the conditions property.

Parameters:
value allowed object is
    public void setConditions(VisualAssetType.Conditions value) {
        this. = value;
    }

    
Gets the value of the orientation property.

Returns:
possible object is
    public OrientationType getOrientation() {
        return ;
    }

    
Sets the value of the orientation property.

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

    
Gets the value of the scalingMode property.

Returns:
possible object is
    public ScalingModeType getScalingMode() {
        return ;
    }

    
Sets the value of the scalingMode property.

Parameters:
value allowed object is
    public void setScalingMode(ScalingModeType 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);
        }
        {
            Integer theZOrder;
            theZOrder = this.getZOrder();
            strategy.appendField(locatorthis"zOrder"buffertheZOrder);
        }
        {
            VisualAssetType.Conditions theConditions;
            theConditions = this.getConditions();
            strategy.appendField(locatorthis"conditions"buffertheConditions);
        }
        {
            OrientationType theOrientation;
            theOrientation = this.getOrientation();
            strategy.appendField(locatorthis"orientation"buffertheOrientation);
        }
        {
            ScalingModeType theScalingMode;
            theScalingMode = this.getScalingMode();
            strategy.appendField(locatorthis"scalingMode"buffertheScalingMode);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof VisualAssetType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final VisualAssetType that = ((VisualAssetTypeobject);
        {
            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;
            }
        }
        {
            Integer lhsZOrder;
            lhsZOrder = this.getZOrder();
            Integer rhsZOrder;
            rhsZOrder = that.getZOrder();
            if (!strategy.equals(LocatorUtils.property(thisLocator"zOrder"lhsZOrder), LocatorUtils.property(thatLocator"zOrder"rhsZOrder), lhsZOrderrhsZOrder)) {
                return false;
            }
        }
        {
            VisualAssetType.Conditions lhsConditions;
            lhsConditions = this.getConditions();
            VisualAssetType.Conditions rhsConditions;
            rhsConditions = that.getConditions();
            if (!strategy.equals(LocatorUtils.property(thisLocator"conditions"lhsConditions), LocatorUtils.property(thatLocator"conditions"rhsConditions), lhsConditionsrhsConditions)) {
                return false;
            }
        }
        {
            OrientationType lhsOrientation;
            lhsOrientation = this.getOrientation();
            OrientationType rhsOrientation;
            rhsOrientation = that.getOrientation();
            if (!strategy.equals(LocatorUtils.property(thisLocator"orientation"lhsOrientation), LocatorUtils.property(thatLocator"orientation"rhsOrientation), lhsOrientationrhsOrientation)) {
                return false;
            }
        }
        {
            ScalingModeType lhsScalingMode;
            lhsScalingMode = this.getScalingMode();
            ScalingModeType rhsScalingMode;
            rhsScalingMode = that.getScalingMode();
            if (!strategy.equals(LocatorUtils.property(thisLocator"scalingMode"lhsScalingMode), LocatorUtils.property(thatLocator"scalingMode"rhsScalingMode), lhsScalingModerhsScalingMode)) {
                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);
        }
        {
            Integer theZOrder;
            theZOrder = this.getZOrder();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"zOrder"theZOrder), currentHashCodetheZOrder);
        }
        {
            VisualAssetType.Conditions theConditions;
            theConditions = this.getConditions();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"conditions"theConditions), currentHashCodetheConditions);
        }
        {
            OrientationType theOrientation;
            theOrientation = this.getOrientation();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"orientation"theOrientation), currentHashCodetheOrientation);
        }
        {
            ScalingModeType theScalingMode;
            theScalingMode = this.getScalingMode();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"scalingMode"theScalingMode), currentHashCodetheScalingMode);
        }
        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 VisualAssetType) {
            final VisualAssetType copy = ((VisualAssetTypetarget);
            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;
            }
            if (this.!= null) {
                Integer sourceZOrder;
                sourceZOrder = this.getZOrder();
                Integer copyZOrder = ((Integerstrategy.copy(LocatorUtils.property(locator"zOrder"sourceZOrder), sourceZOrder));
                copy.setZOrder(copyZOrder);
            } else {
                copy.zOrder = null;
            }
            if (this.!= null) {
                VisualAssetType.Conditions sourceConditions;
                sourceConditions = this.getConditions();
                VisualAssetType.Conditions copyConditions = ((VisualAssetType.Conditionsstrategy.copy(LocatorUtils.property(locator"conditions"sourceConditions), sourceConditions));
                copy.setConditions(copyConditions);
            } else {
                copy.conditions = null;
            }
            if (this.!= null) {
                OrientationType sourceOrientation;
                sourceOrientation = this.getOrientation();
                OrientationType copyOrientation = ((OrientationTypestrategy.copy(LocatorUtils.property(locator"orientation"sourceOrientation), sourceOrientation));
                copy.setOrientation(copyOrientation);
            } else {
                copy.orientation = null;
            }
            if (this.!= null) {
                ScalingModeType sourceScalingMode;
                sourceScalingMode = this.getScalingMode();
                ScalingModeType copyScalingMode = ((ScalingModeTypestrategy.copy(LocatorUtils.property(locator"scalingMode"sourceScalingMode), sourceScalingMode));
                copy.setScalingMode(copyScalingMode);
            } else {
                copy.scalingMode = 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 VisualAssetType) {
            final VisualAssetType target = this;
            final VisualAssetType leftObject = ((VisualAssetTypeleft);
            final VisualAssetType rightObject = ((VisualAssetTyperight);
            {
                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);
            }
            {
                Integer lhsZOrder;
                lhsZOrder = leftObject.getZOrder();
                Integer rhsZOrder;
                rhsZOrder = rightObject.getZOrder();
                Integer mergedZOrder = ((Integerstrategy.merge(LocatorUtils.property(leftLocator"zOrder"lhsZOrder), LocatorUtils.property(rightLocator"zOrder"rhsZOrder), lhsZOrderrhsZOrder));
                target.setZOrder(mergedZOrder);
            }
            {
                VisualAssetType.Conditions lhsConditions;
                lhsConditions = leftObject.getConditions();
                VisualAssetType.Conditions rhsConditions;
                rhsConditions = rightObject.getConditions();
                VisualAssetType.Conditions mergedConditions = ((VisualAssetType.Conditionsstrategy.merge(LocatorUtils.property(leftLocator"conditions"lhsConditions), LocatorUtils.property(rightLocator"conditions"rhsConditions), lhsConditionsrhsConditions));
                target.setConditions(mergedConditions);
            }
            {
                OrientationType lhsOrientation;
                lhsOrientation = leftObject.getOrientation();
                OrientationType rhsOrientation;
                rhsOrientation = rightObject.getOrientation();
                OrientationType mergedOrientation = ((OrientationTypestrategy.merge(LocatorUtils.property(leftLocator"orientation"lhsOrientation), LocatorUtils.property(rightLocator"orientation"rhsOrientation), lhsOrientationrhsOrientation));
                target.setOrientation(mergedOrientation);
            }
            {
                ScalingModeType lhsScalingMode;
                lhsScalingMode = leftObject.getScalingMode();
                ScalingModeType rhsScalingMode;
                rhsScalingMode = rightObject.getScalingMode();
                ScalingModeType mergedScalingMode = ((ScalingModeTypestrategy.merge(LocatorUtils.property(leftLocator"scalingMode"lhsScalingMode), LocatorUtils.property(rightLocator"scalingMode"rhsScalingMode), lhsScalingModerhsScalingMode));
                target.setScalingMode(mergedScalingMode);
            }
        }
    }
    public VisualAssetType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    public VisualAssetType withZOrder(Integer value) {
        setZOrder(value);
        return this;
    }
        setConditions(value);
        return this;
    }
        setOrientation(value);
        return this;
    }
        setScalingMode(value);
        return this;
    }
    @Override
    public VisualAssetType withId(String value) {
        setId(value);
        return this;
    }


    

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/arml/2.0}Condition" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "condition"
    })
    public static class Conditions
        implements CloneableCopyToEqualsHashCodeMergeFromToString
    {
        @XmlElementRef(name = "Condition", namespace = "http://www.opengis.net/arml/2.0", type = JAXBElement.class)
        protected List<JAXBElement<? extends ConditionType>> condition;

        
Gets the value of the condition property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the condition property.

For example, to add a new item, do as follows:

    getCondition().add(newItem);
 

Objects of the following type(s) are allowed in the list <> <> <>

        public List<JAXBElement<? extends ConditionType>> getCondition() {
            if ( == null) {
                 = new ArrayList<JAXBElement<? extends ConditionType>>();
            }
            return this.;
        }
        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) {
            {
                List<JAXBElement<? extends ConditionType>> theCondition;
                theCondition = (((this.!= null)&&(!this..isEmpty()))?this.getCondition():null);
                strategy.appendField(locatorthis"condition"buffertheCondition);
            }
            return buffer;
        }
        public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
            if (!(object instanceof VisualAssetType.Conditions)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final VisualAssetType.Conditions that = ((VisualAssetType.Conditionsobject);
            {
                List<JAXBElement<? extends ConditionType>> lhsCondition;
                lhsCondition = (((this.!= null)&&(!this..isEmpty()))?this.getCondition():null);
                List<JAXBElement<? extends ConditionType>> rhsCondition;
                rhsCondition = (((that.condition!= null)&&(!that.condition.isEmpty()))?that.getCondition():null);
                if (!strategy.equals(LocatorUtils.property(thisLocator"condition"lhsCondition), LocatorUtils.property(thatLocator"condition"rhsCondition), lhsConditionrhsCondition)) {
                    return false;
                }
            }
            return true;
        }
        public boolean equals(Object object) {
            final EqualsStrategy strategy = .;
            return equals(nullnullobjectstrategy);
        }
        public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
            int currentHashCode = 1;
            {
                List<JAXBElement<? extends ConditionType>> theCondition;
                theCondition = (((this.!= null)&&(!this..isEmpty()))?this.getCondition():null);
                currentHashCode = strategy.hashCode(LocatorUtils.property(locator"condition"theCondition), currentHashCodetheCondition);
            }
            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 VisualAssetType.Conditions) {
                final VisualAssetType.Conditions copy = ((VisualAssetType.ConditionsdraftCopy);
                if ((this.!= null)&&(!this..isEmpty())) {
                    List<JAXBElement<? extends ConditionType>> sourceCondition;
                    sourceCondition = (((this.!= null)&&(!this..isEmpty()))?this.getCondition():null);
                    @SuppressWarnings("unchecked")
                    List<JAXBElement<? extends ConditionType>> copyCondition = ((List<JAXBElement<? extends ConditionType>> ) strategy.copy(LocatorUtils.property(locator"condition"sourceCondition), sourceCondition));
                    copy.condition = null;
                    if (copyCondition!= null) {
                        List<JAXBElement<? extends ConditionType>> uniqueConditionl = copy.getCondition();
                        uniqueConditionl.addAll(copyCondition);
                    }
                } else {
                    copy.condition = null;
                }
            }
            return draftCopy;
        }
        public Object createNewInstance() {
            return new VisualAssetType.Conditions();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof VisualAssetType.Conditions) {
                final VisualAssetType.Conditions target = this;
                final VisualAssetType.Conditions leftObject = ((VisualAssetType.Conditionsleft);
                final VisualAssetType.Conditions rightObject = ((VisualAssetType.Conditionsright);
                {
                    List<JAXBElement<? extends ConditionType>> lhsCondition;
                    lhsCondition = (((leftObject.condition!= null)&&(!leftObject.condition.isEmpty()))?leftObject.getCondition():null);
                    List<JAXBElement<? extends ConditionType>> rhsCondition;
                    rhsCondition = (((rightObject.condition!= null)&&(!rightObject.condition.isEmpty()))?rightObject.getCondition():null);
                    List<JAXBElement<? extends ConditionType>> mergedCondition = ((List<JAXBElement<? extends ConditionType>> ) strategy.merge(LocatorUtils.property(leftLocator"condition"lhsCondition), LocatorUtils.property(rightLocator"condition"rhsCondition), lhsConditionrhsCondition));
                    target.condition = null;
                    if (mergedCondition!= null) {
                        List<JAXBElement<? extends ConditionType>> uniqueConditionl = target.getCondition();
                        uniqueConditionl.addAll(mergedCondition);
                    }
                }
            }
        }
        public void setCondition(List<JAXBElement<? extends ConditionType>> value) {
            this. = null;
            List<JAXBElement<? extends ConditionType>> draftl = this.getCondition();
            draftl.addAll(value);
        }
        public VisualAssetType.Conditions withCondition(JAXBElement<? extends ConditionType> ... values) {
            if (values!= null) {
                for (JAXBElement<? extends ConditionTypevaluevalues) {
                    getCondition().add(value);
                }
            }
            return this;
        }
        public VisualAssetType.Conditions withCondition(Collection<JAXBElement<? extends ConditionType>> values) {
            if (values!= null) {
                getCondition().addAll(values);
            }
            return this;
        }
        public VisualAssetType.Conditions withCondition(List<JAXBElement<? extends ConditionType>> value) {
            setCondition(value);
            return this;
        }
    }
New to GrepCode? Check out our FAQ X