public abstract class MetadataObject
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> | 
properties  | 
static java.lang.String | 
TAG  | 
| Constructor and Description | 
|---|
MetadataObject(java.util.Map<java.lang.String,java.lang.Object> properties)
Initializes a MetadataObject with the given metadata properties. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.Integer | 
getIntegerProperty(java.util.Map<java.lang.String,java.lang.Object> properties,
                  java.lang.String propertyName)
Convenience static method to retrieve a property from a properties Map that is expected to
 be an Integer. 
 | 
java.lang.Integer | 
getIntegerProperty(java.lang.String propertyName)
Convenience method to retrieve a property from the dynamic properties Map that is expected to
 be an Integer. 
 | 
java.util.Map<java.lang.String,java.lang.Object> | 
getProperties()
Retrieves a Map of dynamic properties for this object. 
 | 
static java.lang.String | 
getStringProperty(java.util.Map<java.lang.String,java.lang.Object> properties,
                 java.lang.String propertyName)
Convenience static method to retrieve a property from a properties Map that is expected
 to be a String. 
 | 
java.lang.String | 
getStringProperty(java.lang.String propertyName)
Convenience method to retrieve a property from the dynamic properties Map that is expected
 to be a String. 
 | 
java.lang.String | 
toString()  | 
public static final java.lang.String TAG
@NonNull protected final java.util.Map<java.lang.String,java.lang.Object> properties
public MetadataObject(@NonNull
                      java.util.Map<java.lang.String,java.lang.Object> properties)
properties - the metadata assigned to this instancejava.lang.IllegalArgumentException - if properties is null@NonNull public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.String getStringProperty(java.lang.String propertyName)
propertyName - the Map key for the desired property@Nullable
public static java.lang.String getStringProperty(@NonNull
                                                           java.util.Map<java.lang.String,java.lang.Object> properties,
                                                           @NonNull
                                                           java.lang.String propertyName)
properties - the properties Map objectpropertyName - the Map key for the desired propertypublic java.lang.Integer getIntegerProperty(java.lang.String propertyName)
propertyName - the Map key for the desired propertypublic static java.lang.Integer getIntegerProperty(java.util.Map<java.lang.String,java.lang.Object> properties,
                                                   java.lang.String propertyName)
properties - the properties Map objectpropertyName - the Map key for the desired propertypublic java.lang.String toString()
toString in class java.lang.Object