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:39:09 AM CEST 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 
 import java.util.List;
Information about the vector spatial objects in the dataset

Java class for MD_VectorSpatialRepresentation_Type complex type.

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

 <complexType name="MD_VectorSpatialRepresentation_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmd}AbstractMD_SpatialRepresentation_Type">
       <sequence>
         <element name="topologyLevel" type="{http://www.isotc211.org/2005/gmd}MD_TopologyLevelCode_PropertyType" minOccurs="0"/>
         <element name="geometricObjects" type="{http://www.isotc211.org/2005/gmd}MD_GeometricObjects_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_VectorSpatialRepresentation_Type", propOrder = {
     "topologyLevel",
     "geometricObjects"
 })
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
Gets the value of the topologyLevel property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the topologyLevel property.

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

    
Gets the value of the geometricObjects 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 geometricObjects property.

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

    getGeometricObjects().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<MDGeometricObjectsPropertyType>();
        }
        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) {
        super.appendFields(locatorbufferstrategy);
        {
            MDTopologyLevelCodePropertyType theTopologyLevel;
            theTopologyLevel = this.getTopologyLevel();
            strategy.appendField(locatorthis"topologyLevel"buffertheTopologyLevel);
        }
        {
            List<MDGeometricObjectsPropertyTypetheGeometricObjects;
            theGeometricObjects = (((this.!= null)&&(!this..isEmpty()))?this.getGeometricObjects():null);
            strategy.appendField(locatorthis"geometricObjects"buffertheGeometricObjects);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDVectorSpatialRepresentationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDVectorSpatialRepresentationType that = ((MDVectorSpatialRepresentationTypeobject);
        {
            MDTopologyLevelCodePropertyType lhsTopologyLevel;
            lhsTopologyLevel = this.getTopologyLevel();
            MDTopologyLevelCodePropertyType rhsTopologyLevel;
            rhsTopologyLevel = that.getTopologyLevel();
            if (!strategy.equals(LocatorUtils.property(thisLocator"topologyLevel"lhsTopologyLevel), LocatorUtils.property(thatLocator"topologyLevel"rhsTopologyLevel), lhsTopologyLevelrhsTopologyLevel)) {
                return false;
            }
        }
        {
            List<MDGeometricObjectsPropertyTypelhsGeometricObjects;
            lhsGeometricObjects = (((this.!= null)&&(!this..isEmpty()))?this.getGeometricObjects():null);
            List<MDGeometricObjectsPropertyTyperhsGeometricObjects;
            rhsGeometricObjects = (((that.geometricObjects!= null)&&(!that.geometricObjects.isEmpty()))?that.getGeometricObjects():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"geometricObjects"lhsGeometricObjects), LocatorUtils.property(thatLocator"geometricObjects"rhsGeometricObjects), lhsGeometricObjectsrhsGeometricObjects)) {
                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);
        {
            MDTopologyLevelCodePropertyType theTopologyLevel;
            theTopologyLevel = this.getTopologyLevel();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"topologyLevel"theTopologyLevel), currentHashCodetheTopologyLevel);
        }
        {
            List<MDGeometricObjectsPropertyTypetheGeometricObjects;
            theGeometricObjects = (((this.!= null)&&(!this..isEmpty()))?this.getGeometricObjects():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"geometricObjects"theGeometricObjects), currentHashCodetheGeometricObjects);
        }
        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 MDVectorSpatialRepresentationType) {
            final MDVectorSpatialRepresentationType copy = ((MDVectorSpatialRepresentationTypedraftCopy);
            if (this.!= null) {
                MDTopologyLevelCodePropertyType sourceTopologyLevel;
                sourceTopologyLevel = this.getTopologyLevel();
                MDTopologyLevelCodePropertyType copyTopologyLevel = ((MDTopologyLevelCodePropertyTypestrategy.copy(LocatorUtils.property(locator"topologyLevel"sourceTopologyLevel), sourceTopologyLevel));
                copy.setTopologyLevel(copyTopologyLevel);
            } else {
                copy.topologyLevel = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MDGeometricObjectsPropertyTypesourceGeometricObjects;
                sourceGeometricObjects = (((this.!= null)&&(!this..isEmpty()))?this.getGeometricObjects():null);
                @SuppressWarnings("unchecked")
                List<MDGeometricObjectsPropertyTypecopyGeometricObjects = ((List<MDGeometricObjectsPropertyType> ) strategy.copy(LocatorUtils.property(locator"geometricObjects"sourceGeometricObjects), sourceGeometricObjects));
                copy.geometricObjects = null;
                if (copyGeometricObjects!= null) {
                    List<MDGeometricObjectsPropertyTypeuniqueGeometricObjectsl = copy.getGeometricObjects();
                    uniqueGeometricObjectsl.addAll(copyGeometricObjects);
                }
            } else {
                copy.geometricObjects = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDVectorSpatialRepresentationType();
    }
    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 MDVectorSpatialRepresentationType) {
            final MDVectorSpatialRepresentationType target = this;
            final MDVectorSpatialRepresentationType leftObject = ((MDVectorSpatialRepresentationTypeleft);
            final MDVectorSpatialRepresentationType rightObject = ((MDVectorSpatialRepresentationTyperight);
            {
                MDTopologyLevelCodePropertyType lhsTopologyLevel;
                lhsTopologyLevel = leftObject.getTopologyLevel();
                MDTopologyLevelCodePropertyType rhsTopologyLevel;
                rhsTopologyLevel = rightObject.getTopologyLevel();
                MDTopologyLevelCodePropertyType mergedTopologyLevel = ((MDTopologyLevelCodePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"topologyLevel"lhsTopologyLevel), LocatorUtils.property(rightLocator"topologyLevel"rhsTopologyLevel), lhsTopologyLevelrhsTopologyLevel));
                target.setTopologyLevel(mergedTopologyLevel);
            }
            {
                List<MDGeometricObjectsPropertyTypelhsGeometricObjects;
                lhsGeometricObjects = (((leftObject.geometricObjects!= null)&&(!leftObject.geometricObjects.isEmpty()))?leftObject.getGeometricObjects():null);
                List<MDGeometricObjectsPropertyTyperhsGeometricObjects;
                rhsGeometricObjects = (((rightObject.geometricObjects!= null)&&(!rightObject.geometricObjects.isEmpty()))?rightObject.getGeometricObjects():null);
                List<MDGeometricObjectsPropertyTypemergedGeometricObjects = ((List<MDGeometricObjectsPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"geometricObjects"lhsGeometricObjects), LocatorUtils.property(rightLocator"geometricObjects"rhsGeometricObjects), lhsGeometricObjectsrhsGeometricObjects));
                target.geometricObjects = null;
                if (mergedGeometricObjects!= null) {
                    List<MDGeometricObjectsPropertyTypeuniqueGeometricObjectsl = target.getGeometricObjects();
                    uniqueGeometricObjectsl.addAll(mergedGeometricObjects);
                }
            }
        }
    }
        this. = null;
        List<MDGeometricObjectsPropertyTypedraftl = this.getGeometricObjects();
        draftl.addAll(value);
    }
        setTopologyLevel(value);
        return this;
    }
        if (values!= null) {
            for (MDGeometricObjectsPropertyType valuevalues) {
                getGeometricObjects().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getGeometricObjects().addAll(values);
        }
        return this;
    }
        setGeometricObjects(value);
        return this;
    }
    @Override
        setId(value);
        return this;
    }
    @Override
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X