Class Model
java.lang.Object
org.apache.sling.provisioning.model.Traceable
org.apache.sling.provisioning.model.Model
A model is the central object.
It consists of features.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFeature
(String name) Find the feature if availableReturn all features.getOrCreateFeature
(String name) Get or create the feature.toString()
Methods inherited from class org.apache.sling.provisioning.model.Traceable
getLocation, setLocation
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
getFeature
Find the feature if available- Parameters:
name
- The feature name- Returns:
- The feature or
null
.
-
getOrCreateFeature
Get or create the feature.- Parameters:
name
- Feature name- Returns:
- The feature for the given name.
-
getFeatures
Return all features. The returned list is modifiable and directly modifies the model.- Returns:
- The list of features.
-
toString
-