Package org.vast.data
Class GeometryDataImpl
- All Implemented Interfaces:
Serializable
,HasCopy
,AbstractSWE
,AbstractSWEIdentifiable
,DataChoice
,DataComponent
,GeometryData
,HasConstraints<AllowedGeoms>
,HasRefFrames
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.opengis.swe.v20.GeometryData
GeometryData.GeomType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OgcProperty<AllowedGeoms>
protected DataArray
protected DataArray
protected DataArray
protected int
protected String
Fields inherited from class org.vast.data.DataChoiceImpl
choiceValue, itemList, selected, UNSELECTED, UNSELECTED_ERROR
Fields inherited from class org.vast.data.AbstractDataComponentImpl
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatable
Fields inherited from class org.vast.data.AbstractSWEIdentifiableImpl
description, identifier, label
Fields inherited from class org.vast.data.AbstractSWEImpl
extensionList, id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(DataComponentVisitor visitor) static int
computeNumDims
(DataBlock dataBlock) copy()
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)Gets the constraint propertyGets extra info (name, xlink, etc.) carried by the constraint propertyGets the localFrame propertyint
Gets the referenceFrame propertyboolean
Checks if constraint is setboolean
Checks if localFrame is setboolean
Checks if referenceFrame is setvoid
setConstraint
(AllowedGeoms constraint) Sets the constraint propertyvoid
Assign a new datablock to this component.void
setGeomType
(GeometryData.GeomType geomType) Select the geometry type before generating a datablock for this componentvoid
setLocalFrame
(String localFrame) Sets the localFrame propertyvoid
setNumDims
(int numDims) Set the number of dimensions for the geometryvoid
setReferenceFrame
(String referenceFrame) Sets the referenceFrame propertyMethods inherited from class org.vast.data.DataChoiceImpl
addComponent, addItem, checkIndex, clearData, createDataBlock, getChoiceValue, getComponent, getComponent, getComponentCount, getComponentIndex, getItem, getItemList, getNumItems, getSelected, getSelectedItem, hasConstraints, isSetChoiceValue, removeComponent, removeComponent, setChoiceValue, setSelectedItem, setSelectedItem, toString, unselect, updateAtomCount, updateStartIndex, validateData
Methods inherited from class org.vast.data.AbstractDataComponentImpl
assignNewDataBlock, clone, copyTo, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, hasData, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, unSetOptional, unSetUpdatable
Methods inherited from class org.vast.data.AbstractSWEIdentifiableImpl
copyTo, getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
Methods inherited from class org.vast.data.AbstractSWEImpl
addExtension, copyTo, getExtensionList, getId, getNumExtensions, isSetId, setId
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.opengis.swe.v20.AbstractSWE
addExtension, getExtensionList, getId, getNumExtensions, isSetId, setId
Methods inherited from interface net.opengis.swe.v20.AbstractSWEIdentifiable
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
Methods inherited from interface net.opengis.swe.v20.DataComponent
addComponent, assignNewDataBlock, clearData, clone, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasConstraints, hasData, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable, validateData
-
Field Details
-
referenceFrame
-
constraint
-
numDims
protected int numDims -
coordArray1
-
coordArray2
-
coordArray3
-
-
Constructor Details
-
GeometryDataImpl
public GeometryDataImpl()
-
-
Method Details
-
copy
Description copied from interface:DataComponent
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)- Specified by:
copy
in interfaceDataChoice
- Specified by:
copy
in interfaceDataComponent
- Specified by:
copy
in interfaceHasCopy
- Overrides:
copy
in classDataChoiceImpl
- Returns:
- copy of this component, including sub-components
-
setGeomType
Description copied from interface:GeometryData
Select the geometry type before generating a datablock for this component- Specified by:
setGeomType
in interfaceGeometryData
-
getGeomType
- Specified by:
getGeomType
in interfaceGeometryData
- Returns:
- The currently selected geometry type
-
getConstraint
Description copied from interface:HasConstraints
Gets the constraint property- Specified by:
getConstraint
in interfaceHasConstraints<AllowedGeoms>
-
getConstraintProperty
Description copied from interface:HasConstraints
Gets extra info (name, xlink, etc.) carried by the constraint property- Specified by:
getConstraintProperty
in interfaceHasConstraints<AllowedGeoms>
-
isSetConstraint
public boolean isSetConstraint()Description copied from interface:HasConstraints
Checks if constraint is set- Specified by:
isSetConstraint
in interfaceHasConstraints<AllowedGeoms>
-
setConstraint
Description copied from interface:HasConstraints
Sets the constraint property- Specified by:
setConstraint
in interfaceHasConstraints<AllowedGeoms>
-
getReferenceFrame
Description copied from interface:HasRefFrames
Gets the referenceFrame property- Specified by:
getReferenceFrame
in interfaceHasRefFrames
-
isSetReferenceFrame
public boolean isSetReferenceFrame()Description copied from interface:HasRefFrames
Checks if referenceFrame is set- Specified by:
isSetReferenceFrame
in interfaceHasRefFrames
-
setReferenceFrame
Description copied from interface:HasRefFrames
Sets the referenceFrame property- Specified by:
setReferenceFrame
in interfaceHasRefFrames
-
getNumDims
public int getNumDims()- Specified by:
getNumDims
in interfaceGeometryData
- Returns:
- The number of dimensions in the geometry (2D, 3D, etc.)
-
setNumDims
public void setNumDims(int numDims) Description copied from interface:GeometryData
Set the number of dimensions for the geometry- Specified by:
setNumDims
in interfaceGeometryData
-
setData
Description copied from interface:DataComponent
Assign a new datablock to this component. This will recursively assign the right datablocks to sub-components recursively.- Specified by:
setData
in interfaceDataComponent
- Overrides:
setData
in classDataChoiceImpl
-
computeNumDims
-
accept
- Specified by:
accept
in interfaceDataComponent
- Overrides:
accept
in classDataChoiceImpl
-
getLocalFrame
Description copied from interface:HasRefFrames
Gets the localFrame property- Specified by:
getLocalFrame
in interfaceHasRefFrames
-
isSetLocalFrame
public boolean isSetLocalFrame()Description copied from interface:HasRefFrames
Checks if localFrame is set- Specified by:
isSetLocalFrame
in interfaceHasRefFrames
-
setLocalFrame
Description copied from interface:HasRefFrames
Sets the localFrame property- Specified by:
setLocalFrame
in interfaceHasRefFrames
-