Interface DataAttributesBase
Interface DataAttributesBase
-
- All Known Implementing Classes:
DataAttributes,DataAttributesAccessor
public interface DataAttributesBaseInterface for a collection of data attributes.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAsString(java.lang.String name)Gets the value of an attribute as a string ornullif it is not contained.java.util.List<java.lang.String>getAttributeNames()Returns a list of attribute names.java.lang.BooleangetBoolean(java.lang.String name)Gets the value of a boolean attribute ornullif it is not contained or the type doesn't match.java.lang.DoublegetDouble(java.lang.String name)Gets the value of a double precision floating decimal attribute ornullif it is not contained or the type doesn't match.java.lang.FloatgetFloat(java.lang.String name)Gets the value of a single precision floating decimal attribute ornullif it is not contained or the type doesn't match.java.lang.LonggetInt64(java.lang.String name)Gets the value of a 64-bits integer attribute ornullif it is not contained or the type doesn't match.java.lang.StringgetString(java.lang.String name)Gets the value of a string attribute ornullif it is not contained or the type doesn't match.DataAttributeValuegetValue(java.lang.String name)Gets the DataAttributeValue ornullif it is not contained.DataAttributeValue.ValueTypegetValueType(java.lang.String name)Returns the value type of an attribute ornullif it is not contained.
-
-
-
Method Detail
-
getAttributeNames
@NonNull java.util.List<java.lang.String> getAttributeNames()
Returns a list of attribute names.
- Returns:
The list of attribute names.
-
getValueType
@Nullable DataAttributeValue.ValueType getValueType(@NonNull java.lang.String name)
Returns the value type of an attribute or
nullif it is not contained.- Parameters:
name-Attribute name.
- Returns:
Attribute value type or
nullif it is not contained.
-
getAsString
@Nullable java.lang.String getAsString(@NonNull java.lang.String name)Gets the value of an attribute as a string or
nullif it is not contained.- Parameters:
name-Attribute name.
- Returns:
Attribute value.
-
getString
@Nullable java.lang.String getString(@NonNull java.lang.String name)Gets the value of a string attribute or
nullif it is not contained or the type doesn't match.- Parameters:
name-Attribute name.
- Returns:
Attribute value.
-
getInt64
@Nullable java.lang.Long getInt64(@NonNull java.lang.String name)Gets the value of a 64-bits integer attribute or
nullif it is not contained or the type doesn't match.- Parameters:
name-Attribute name.
- Returns:
Attribute value.
-
getFloat
@Nullable java.lang.Float getFloat(@NonNull java.lang.String name)Gets the value of a single precision floating decimal attribute or
nullif it is not contained or the type doesn't match.- Parameters:
name-Attribute name.
- Returns:
Attribute value.
-
getDouble
@Nullable java.lang.Double getDouble(@NonNull java.lang.String name)Gets the value of a double precision floating decimal attribute or
nullif it is not contained or the type doesn't match.- Parameters:
name-Attribute name.
- Returns:
Attribute value.
-
getBoolean
@Nullable java.lang.Boolean getBoolean(@NonNull java.lang.String name)Gets the value of a boolean attribute or
nullif it is not contained or the type doesn't match.- Parameters:
name-Attribute name.
- Returns:
Attribute value.
-
getValue
@Nullable DataAttributeValue getValue(@NonNull java.lang.String name)
Gets the DataAttributeValue or
nullif it is not contained.- Parameters:
name-Attribute name.
- Returns:
Attribute value.
-
-