public abstract class AbstractImmutableModel extends Object implements Described, EnrichableModel
Described EnrichableModel model| Modifier | Constructor and Description |
|---|---|
protected |
AbstractImmutableModel(String description,
Set<ModelProperty> modelProperties)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkArgument(boolean condition,
String message) |
String |
getDescription()
Returns the component's description
|
Set<ModelProperty> |
getModelProperties()
Returns all the model properties registered for this model
|
<T extends ModelProperty> |
getModelProperty(Class<T> propertyType)
Returns a registered model property of type
propertyType. |
String |
toString() |
protected AbstractImmutableModel(String description, Set<ModelProperty> modelProperties)
description - the model's descriptionmodelProperties - A Set of custom properties which extend this modelprotected static void checkArgument(boolean condition,
String message)
public final String getDescription()
getDescription in interface DescribedStringpublic <T extends ModelProperty> Optional<T> getModelProperty(Class<T> propertyType)
propertyType.
This search considers hierarchies. If no explicit value exists for the
given propertyType, then it will look for properties which extend
the given type or, in the case of an interface, implement it.
getModelProperty in interface EnrichableModelT - the generic type of the return valuepropertyType - the Class of the ModelProperty which is being queriedOptional ModelPropertypublic Set<ModelProperty> getModelProperties()
getModelProperties in interface EnrichableModelSet containing all the model propertiesCopyright © 2016 MuleSoft, Inc.. All rights reserved.