Package org.arakhne.afc.attrs.collection
Class MultiAttributeProvider.ManyValueAttributeValue
- java.lang.Object
-
- org.arakhne.afc.attrs.attr.AttributeValueImpl
-
- org.arakhne.afc.attrs.collection.MultiAttributeProvider.ManyValueAttributeValue
-
- All Implemented Interfaces:
Serializable
,Cloneable
,AttributeValue
,JsonableObject
- Enclosing class:
- MultiAttributeProvider
static class MultiAttributeProvider.ManyValueAttributeValue extends AttributeValueImpl
This class provides an implementation of attribute value that may be marked with an indicators that many values are possibles for the attribute.- Since:
- 4.0
- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- attributes
-
-
Constructor Summary
Constructors Constructor Description ManyValueAttributeValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeType
getTopType()
Replies the type type associated to this attribute value.boolean
hasMultipleValues()
Replies if this attribute has multiple values.void
setInternalValue(Object value)
Set this value with the content of the specified one.void
setInternalValue(Object value, AttributeType type)
Set this value with the content of the specified one.void
setMultipleValues(boolean v)
Set if this attribute has multiple values.void
setTopType(AttributeType type)
Set the top type associated to this attribute value.void
toJson(JsonBuffer buffer)
Replies the Json representation of this node.-
Methods inherited from class org.arakhne.afc.attrs.attr.AttributeValueImpl
addToPolyline, addToPolyline, addToPolyline3D, addToPolyline3D, assertAssignedAndNotNull, cast, castAndSet, compareValues, equals, flush, getBoolean, getDate, getEnumeration, getEnumeration, getInetAddress, getInteger, getInternalStorageType, getJavaClass, getJavaObject, getPoint, getPoint3D, getPolyline, getPolyline3D, getReal, getString, getTimestamp, getType, getURI, getURL, getUUID, getValue, hashCode, isAssignableFrom, isAssignableFrom, isAssigned, isBaseType, isNullAllowed, isObjectValue, parse, setBoolean, setDate, setEnumeration, setInetAddress, setInetAddress, setInetAddress, setInteger, setInteger, setJavaClass, setJavaObject, setPoint, setPoint, setPoint3D, setPoint3D, setPolyline, setPolyline, setPolyline3D, setPolyline3D, setReal, setString, setTimestamp, setToDefault, setToDefaultIfUninitialized, setType, setURI, setURI, setURL, setURL, setUUID, setUUID, setValue, setValue, toString, uninitializeValue, valueComparator
-
-
-
-
Method Detail
-
toJson
public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObject
Replies the Json representation of this node.- Specified by:
toJson
in interfaceJsonableObject
- Overrides:
toJson
in classAttributeValueImpl
- Parameters:
buffer
- the Json buffer.
-
getTopType
@Pure public AttributeType getTopType()
Replies the type type associated to this attribute value.- Returns:
- the top type associated to this attribute value.
-
setTopType
public void setTopType(AttributeType type)
Set the top type associated to this attribute value.- Parameters:
type
- is the top type associated to this attribute value.
-
setInternalValue
public final void setInternalValue(Object value)
Description copied from class:AttributeValueImpl
Set this value with the content of the specified one.The type of the attribute will be NOT detected from the type of the object. It means that it is not changed by this function. The given value must be compatible with internal representation of the attribute implementation.
- Overrides:
setInternalValue
in classAttributeValueImpl
- Parameters:
value
- is the raw value to put inside this attribute value.
-
setInternalValue
public final void setInternalValue(Object value, AttributeType type)
Description copied from class:AttributeValueImpl
Set this value with the content of the specified one.The type of the attribute will be NOT detected from the type of the object. It means that it will be equal to the given type, even if the given value is incompatible. The given value must be compatible with internal representation of the attribute implementation.
- Overrides:
setInternalValue
in classAttributeValueImpl
- Parameters:
value
- is the raw value to put inside this attribute value.type
- is the type of the value.
-
hasMultipleValues
@Pure public boolean hasMultipleValues()
Replies if this attribute has multiple values.- Returns:
true
if this attribute has multiple values, otherwisefalse
.
-
setMultipleValues
public void setMultipleValues(boolean v)
Set if this attribute has multiple values.- Parameters:
v
- istrue
if this attribute has multiple values, otherwisefalse
.
-
-