-
- All Superinterfaces:
AttributeValue
,Cloneable
,JsonableObject
,Serializable
- All Known Implementing Classes:
AttributeImpl
public interface Attribute extends AttributeValue
This interface contains a metadata with a name.- Version:
- 17.0 2020-01-04 14:41:51
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- attributes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Comparator<? extends Attribute>
comparator()
Replies a comparator suitable for attribute based on the names of the attributes only.String
getName()
Replies the name of the metadata.Comparator<? extends Attribute>
nameComparator()
Replies a comparator suitable for attribute based on the names of the attributes only.void
setAttribute(Attribute value)
The this value with the content of the specified one.void
setName(String name)
Set the name of this metadata.-
Methods inherited from interface org.arakhne.afc.attrs.attr.AttributeValue
addToPolyline, addToPolyline, addToPolyline3D, addToPolyline3D, cast, castAndSet, flush, getBoolean, getDate, getEnumeration, getEnumeration, getInetAddress, getInteger, getInternalStorageType, getJavaClass, getJavaObject, getPoint, getPoint3D, getPolyline, getPolyline3D, getReal, getString, getTimestamp, getType, getURI, getURL, getUUID, getValue, isAssignableFrom, isAssignableFrom, isAssigned, isBaseType, isNullAllowed, isObjectValue, setBoolean, setDate, setEnumeration, setInetAddress, setInteger, setInteger, setJavaClass, setJavaObject, setPoint, setPoint, setPoint3D, setPoint3D, setPolyline, setPolyline, setPolyline3D, setPolyline3D, setReal, setString, setTimestamp, setToDefault, setToDefaultIfUninitialized, setType, setURI, setURL, setUUID, setValue, setValue, uninitializeValue, valueComparator
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
-
-
-
Method Detail
-
nameComparator
@Pure Comparator<? extends Attribute> nameComparator()
Replies a comparator suitable for attribute based on the names of the attributes only.- Returns:
- a comparator, never
null
- See Also:
AttributeValue.valueComparator()
,comparator()
-
comparator
@Pure Comparator<? extends Attribute> comparator()
Replies a comparator suitable for attribute based on the names of the attributes only.- Returns:
- a comparator, never
null
- See Also:
nameComparator()
,AttributeValue.valueComparator()
-
setAttribute
void setAttribute(Attribute value) throws InvalidAttributeTypeException
The this value with the content of the specified one.- Parameters:
value
- the value.- Throws:
InvalidAttributeTypeException
- when the type is incompatible.
-
getName
@Pure String getName()
Replies the name of the metadata.- Returns:
- the name of the attribute.
-
setName
void setName(String name)
Set the name of this metadata.- Parameters:
name
- the name of the attribute.
-
-