public class CesiumCustomProperties extends Object
| Constructor and Description | 
|---|
CesiumCustomProperties()
Initializes a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<T> void | 
addCustomProperty(TypeLiteral<T> typeLiteralT,
                 String propertyName,
                 CesiumProperty<T> property)
Add a custom property. 
 | 
<T> CesiumProperty<T> | 
getCustomProperty(String propertyName)
Get a previously added custom property. 
 | 
void | 
removeCustomProperty(String propertyName)
Removes a custom property. 
 | 
public CesiumCustomProperties()
public final <T> void addCustomProperty(TypeLiteral<T> typeLiteralT, @Nonnull String propertyName, @Nonnull CesiumProperty<T> property)
T - The type of the data.typeLiteralT - A TypeLiteral object representing the generic type T.propertyName - The name of the custom property. This must be unique.property - The custom property.ArgumentNullException - Thrown when property is null.ArgumentException - Thrown when T is not a supported type of custom CZML property.public final void removeCustomProperty(@Nonnull String propertyName)
propertyName - The name of the custom property.public final <T> CesiumProperty<T> getCustomProperty(@Nonnull String propertyName)
T - The type of the data.propertyName - The name of the custom property.null if there is no property with the given name.