Class AbstractNamedImmutableModel
java.lang.Object
org.mule.runtime.extension.api.model.AbstractImmutableModel
org.mule.runtime.extension.api.model.AbstractNamedImmutableModel
- All Implemented Interfaces:
org.mule.runtime.api.meta.DescribedObject,org.mule.runtime.api.meta.model.display.HasDisplayModel,org.mule.runtime.api.meta.model.EnrichableModel,org.mule.runtime.api.meta.NamedObject
- Direct Known Subclasses:
AbstractComplexModel,AbstractParameterizedModel,ImmutableParameterGroupModel,ImmutableParameterModel
public abstract class AbstractNamedImmutableModel
extends AbstractImmutableModel
implements org.mule.runtime.api.meta.NamedObject, org.mule.runtime.api.meta.model.display.HasDisplayModel
Base class for immutable implementations of
NamedObject introspection models- Since:
- 1.0
-
Field Summary
Fields inherited from class org.mule.runtime.extension.api.model.AbstractImmutableModel
description, modelProperties -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNamedImmutableModel(String name, String description, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcheckArgument(boolean condition, String message) booleanDefines object equality based on the given object being an object of this class and in the equality of thegetName()attributesOptional<org.mule.runtime.api.meta.model.display.DisplayModel>final StringgetName()inthashCode()Calculates hashcode based ongetName()toString()Methods inherited from class org.mule.runtime.extension.api.model.AbstractImmutableModel
copy, copy, getDescription, getModelProperties, getModelProperty
-
Constructor Details
-
AbstractNamedImmutableModel
protected AbstractNamedImmutableModel(String name, String description, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) Creates a new instance- Parameters:
name- the model's namedescription- the model's descriptiondisplayModel- a model containing directives about how this component is to be displayed in the UImodelProperties- ASetof custom properties which extend this model- Throws:
IllegalArgumentException- ifnameis blank
-
-
Method Details
-
checkArgument
-
getName
- Specified by:
getNamein interfaceorg.mule.runtime.api.meta.NamedObject
-
getDisplayModel
- Specified by:
getDisplayModelin interfaceorg.mule.runtime.api.meta.model.display.HasDisplayModel
-
equals
Defines object equality based on the given object being an object of this class and in the equality of thegetName()attributes -
hashCode
public int hashCode()Calculates hashcode based ongetName() -
toString
- Overrides:
toStringin classAbstractImmutableModel
-