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 DataArrayprotected DataArrayprotected DataArrayprotected intprotected StringFields inherited from class org.vast.data.DataChoiceImpl
choiceValue, itemList, selected, UNSELECTED, UNSELECTED_ERRORFields inherited from class org.vast.data.AbstractDataComponentImpl
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatableFields inherited from class org.vast.data.AbstractSWEIdentifiableImpl
description, identifier, labelFields inherited from class org.vast.data.AbstractSWEImpl
extensionList, id - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(DataComponentVisitor visitor) static intcomputeNumDims(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 propertyintGets the referenceFrame propertybooleanChecks if constraint is setbooleanChecks if localFrame is setbooleanChecks if referenceFrame is setvoidsetConstraint(AllowedGeoms constraint) Sets the constraint propertyvoidAssign a new datablock to this component.voidsetGeomType(GeometryData.GeomType geomType) Select the geometry type before generating a datablock for this componentvoidsetLocalFrame(String localFrame) Sets the localFrame propertyvoidsetNumDims(int numDims) Set the number of dimensions for the geometryvoidsetReferenceFrame(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, validateDataMethods 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, unSetUpdatableMethods inherited from class org.vast.data.AbstractSWEIdentifiableImpl
copyTo, getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabelMethods inherited from class org.vast.data.AbstractSWEImpl
addExtension, copyTo, getExtensionList, getId, getNumExtensions, isSetId, setIdMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.opengis.swe.v20.AbstractSWE
addExtension, getExtensionList, getId, getNumExtensions, isSetId, setIdMethods inherited from interface net.opengis.swe.v20.AbstractSWEIdentifiable
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabelMethods 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:DataComponentReturn a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)- Specified by:
 copyin interfaceDataChoice- Specified by:
 copyin interfaceDataComponent- Specified by:
 copyin interfaceHasCopy- Overrides:
 copyin classDataChoiceImpl- Returns:
 - copy of this component, including sub-components
 
 - 
setGeomType
Description copied from interface:GeometryDataSelect the geometry type before generating a datablock for this component- Specified by:
 setGeomTypein interfaceGeometryData
 - 
getGeomType
- Specified by:
 getGeomTypein interfaceGeometryData- Returns:
 - The currently selected geometry type
 
 - 
getConstraint
Description copied from interface:HasConstraintsGets the constraint property- Specified by:
 getConstraintin interfaceHasConstraints<AllowedGeoms>
 - 
getConstraintProperty
Description copied from interface:HasConstraintsGets extra info (name, xlink, etc.) carried by the constraint property- Specified by:
 getConstraintPropertyin interfaceHasConstraints<AllowedGeoms>
 - 
isSetConstraint
public boolean isSetConstraint()Description copied from interface:HasConstraintsChecks if constraint is set- Specified by:
 isSetConstraintin interfaceHasConstraints<AllowedGeoms>
 - 
setConstraint
Description copied from interface:HasConstraintsSets the constraint property- Specified by:
 setConstraintin interfaceHasConstraints<AllowedGeoms>
 - 
getReferenceFrame
Description copied from interface:HasRefFramesGets the referenceFrame property- Specified by:
 getReferenceFramein interfaceHasRefFrames
 - 
isSetReferenceFrame
public boolean isSetReferenceFrame()Description copied from interface:HasRefFramesChecks if referenceFrame is set- Specified by:
 isSetReferenceFramein interfaceHasRefFrames
 - 
setReferenceFrame
Description copied from interface:HasRefFramesSets the referenceFrame property- Specified by:
 setReferenceFramein interfaceHasRefFrames
 - 
getNumDims
public int getNumDims()- Specified by:
 getNumDimsin interfaceGeometryData- Returns:
 - The number of dimensions in the geometry (2D, 3D, etc.)
 
 - 
setNumDims
public void setNumDims(int numDims) Description copied from interface:GeometryDataSet the number of dimensions for the geometry- Specified by:
 setNumDimsin interfaceGeometryData
 - 
setData
Description copied from interface:DataComponentAssign a new datablock to this component. This will recursively assign the right datablocks to sub-components recursively.- Specified by:
 setDatain interfaceDataComponent- Overrides:
 setDatain classDataChoiceImpl
 - 
computeNumDims
 - 
accept
- Specified by:
 acceptin interfaceDataComponent- Overrides:
 acceptin classDataChoiceImpl
 - 
getLocalFrame
Description copied from interface:HasRefFramesGets the localFrame property- Specified by:
 getLocalFramein interfaceHasRefFrames
 - 
isSetLocalFrame
public boolean isSetLocalFrame()Description copied from interface:HasRefFramesChecks if localFrame is set- Specified by:
 isSetLocalFramein interfaceHasRefFrames
 - 
setLocalFrame
Description copied from interface:HasRefFramesSets the localFrame property- Specified by:
 setLocalFramein interfaceHasRefFrames
 
 -