Class GeometryOperand

  • All Implemented Interfaces:
    Serializable, Name

    public final class GeometryOperand
    extends Object
    implements Name, Serializable
    Enumeration of the different GeometryOperand types.

      <xsd:simpleType name="GeometryOperandType">
        <xsd:restriction base="xsd:QName">
            <xsd:enumeration value="gml:Envelope"/>
            <xsd:enumeration value="gml:Point"/>
            <xsd:enumeration value="gml:LineString"/>
            <xsd:enumeration value="gml:Polygon"/>
            <xsd:enumeration value="gml:ArcByCenterPoint"/>
            <xsd:enumeration value="gml:CircleByCenterPoint"/>
            <xsd:enumeration value="gml:Arc"/>
            <xsd:enumeration value="gml:Circle"/>
            <xsd:enumeration value="gml:ArcByBulge"/>
            <xsd:enumeration value="gml:Bezier"/>
            <xsd:enumeration value="gml:Clothoid"/>
            <xsd:enumeration value="gml:CubicSpline"/>
            <xsd:enumeration value="gml:Geodesic"/>
            <xsd:enumeration value="gml:OffsetCurve"/>
            <xsd:enumeration value="gml:Triangle"/>
            <xsd:enumeration value="gml:PolyhedralSurface"/>
            <xsd:enumeration value="gml:TriangulatedSurface"/>
            <xsd:enumeration value="gml:Tin"/>
            <xsd:enumeration value="gml:Solid"/>
         </xsd:restriction>
      </xsd:simpleType>
      
    Author:
    Justin Deoliveira (The Open Planning Project), Martin Desruisseaux (Geomatys)
    See Also:
    Serialized Form
    • Field Detail

      • Envelope

        public static final GeometryOperand Envelope
        "http://www.opengis.net/gml/Envelope"
      • Point

        public static final GeometryOperand Point
        "http://www.opengis.net/gml/Point"
      • LineString

        public static final GeometryOperand LineString
        "http://www.opengis.net/gml/LineString"
      • Polygon

        public static final GeometryOperand Polygon
        "http://www.opengis.net/gml/Polygon"
      • ArcByCenterPoint

        public static final GeometryOperand ArcByCenterPoint
        "http://www.opengis.net/gml/ArcByCenterPoint"
      • CircleByCenterPoint

        public static final GeometryOperand CircleByCenterPoint
        "http://www.opengis.net/gml/CircleByCenterPoint"
      • Arc

        public static final GeometryOperand Arc
        "http://www.opengis.net/gml/Arc"
      • Circle

        public static final GeometryOperand Circle
        "http://www.opengis.net/gml/Circle"
      • ArcByBulge

        public static final GeometryOperand ArcByBulge
        "http://www.opengis.net/gml/ArcByBulge"
      • Bezier

        public static final GeometryOperand Bezier
        "http://www.opengis.net/gml/Bezier"
      • Clothoid

        public static final GeometryOperand Clothoid
        "http://www.opengis.net/gml/Clothoid"
      • CubicSpline

        public static final GeometryOperand CubicSpline
        "http://www.opengis.net/gml/CubicSpline"
      • Geodesic

        public static final GeometryOperand Geodesic
        "http://www.opengis.net/gml/Geodesic"
      • OffsetCurve

        public static final GeometryOperand OffsetCurve
        "http://www.opengis.net/gml/OffsetCurve"
      • Triangle

        public static final GeometryOperand Triangle
        "http://www.opengis.net/gml/Triangle"
      • PolyhedralSurface

        public static final GeometryOperand PolyhedralSurface
        "http://www.opengis.net/gml/PolyhedralSurface"
      • TriangulatedSurface

        public static final GeometryOperand TriangulatedSurface
        "http://www.opengis.net/gml/TriangulatedSurface"
      • Tin

        public static final GeometryOperand Tin
        "http://www.opengis.net/gml/Tin"
      • Solid

        public static final GeometryOperand Solid
        "http://www.opengis.net/gml/Solid"
    • Method Detail

      • get

        public static GeometryOperand get​(String namespaceURI,
                                          String name)
        Returns the geometry operand for the given name.
        Parameters:
        namespaceURI - The namespace URI, or null for the default one.
        name - The operand name.
        Returns:
        The geometry operand, or null if none was found.
      • getLocalPart

        public String getLocalPart()
        Retrieve the Local name.
        Specified by:
        getLocalPart in interface Name
        Returns:
        local name (can be used in namespace lookup)
      • getNamespaceURI

        public String getNamespaceURI()
        Returns the name space, which is usually "http://www.opengis.net/gml".
        Specified by:
        getNamespaceURI in interface Name
      • getURI

        public String getURI()
        Convert this name to a complete URI.
        Specified by:
        getURI in interface Name
        Returns:
        a complete URI constructed of namespace URI and the local part.
      • isGlobal

        public boolean isGlobal()
        Returns false since this name has a namespace.
        Specified by:
        isGlobal in interface Name
        Returns:
        Returns true if getNamespaceURI is null
      • getSeparator

        public String getSeparator()
        Description copied from interface: Name
        Separator to use between getNamespaceURI() and getLocalPart() when constructing getURI().

        This separator is only used to construct a visually pleasing getURI() result. The value to use as a separator depends on the registry or namespace you are working with. JNDI naming services have been known to use "/" and ":". Referring to an element in an XMLSchema document has been represented with a "#" symbol.

        Specified by:
        getSeparator in interface Name
        Returns:
        A separator (such as "/" or ":").
      • hashCode

        public int hashCode()
        Returns a hash code value for this operand.
        Specified by:
        hashCode in interface Name
        Overrides:
        hashCode in class Object
        Returns:
        a hascode based on getURI()
      • equals

        public boolean equals​(Object other)
        Compares this operand with the specified value for equality.
        Specified by:
        equals in interface Name
        Overrides:
        equals in class Object
        Returns:
        true if getURI is equal.
      • toString

        public String toString()
        Returns a string representation of this operand.
        Specified by:
        toString in interface Name
        Overrides:
        toString in class Object