Package org.vast.data
Class EncodedValuesImpl
java.lang.Object
org.vast.ogc.xlink.SimpleLink<T>
net.opengis.OgcPropertyImpl<byte[]>
org.vast.data.EncodedValuesImpl
- All Implemented Interfaces:
Serializable
,OgcProperty<byte[]>
,EncodedValues
,IXlinkReference<byte[]>
Full implementation of EncodedValues wrapping SWE Common data stream parsers/writers allowing decoding/encoding of any encoded array or stream
- Since:
- Oct 3, 2014
- See Also:
-
Field Summary
Fields inherited from class net.opengis.OgcPropertyImpl
hrefResolver, name, nilReason, value
Fields inherited from class org.vast.ogc.xlink.SimpleLink
arcRole, href, role, title
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(BlockComponent array, DataEncoding encoding) encode
(BlockComponent array, DataEncoding encoding) getAsText
(DataArray array, DataEncoding encoding) getAsText
(DataStream dataStream, DataEncoding encoding) getData()
boolean
Fetches remote value from xlink href This method does nothing if property value is not nullvoid
setAsText
(DataArray array, DataEncoding encoding, String text) void
setAsText
(DataStream dataStream, DataEncoding encoding, String text) void
setData
(DataBlockList data) Methods inherited from class net.opengis.OgcPropertyImpl
copy, copyTo, getArcRole, getName, getNilReason, getTarget, getTargetUID, getValue, hasHref, hasValue, setHrefResolver, setName, setNilReason, setTargetUID, setValue
Methods inherited from class org.vast.ogc.xlink.SimpleLink
getHref, getMediaType, getRole, getTargetInterface, getTitle, setArcRole, setHref, setMediaType, setRole, setTargetInterface, setTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.vast.ogc.xlink.IXlinkReference
getArcRole, getHref, getMediaType, getRole, getTarget, getTargetInterface, getTargetUID, getTitle, setArcRole, setHref, setMediaType, setRole, setTargetInterface, setTargetUID, setTitle
Methods inherited from interface net.opengis.OgcProperty
copy, getName, getNilReason, getValue, hasHref, hasValue, setHrefResolver, setName, setNilReason, setValue
-
Constructor Details
-
EncodedValuesImpl
public EncodedValuesImpl()
-
-
Method Details
-
resolveHref
public boolean resolveHref()Description copied from interface:OgcProperty
Fetches remote value from xlink href This method does nothing if property value is not null- Specified by:
resolveHref
in interfaceOgcProperty<byte[]>
- Overrides:
resolveHref
in classOgcPropertyImpl<byte[]>
- Returns:
- true if content was successfully fetched
-
setAsText
- Specified by:
setAsText
in interfaceEncodedValues
-
decode
-
getAsText
- Specified by:
getAsText
in interfaceEncodedValues
-
encode
-
setAsText
- Specified by:
setAsText
in interfaceEncodedValues
-
getAsText
- Specified by:
getAsText
in interfaceEncodedValues
-
setData
- Specified by:
setData
in interfaceEncodedValues
-
getData
- Specified by:
getData
in interfaceEncodedValues
-