Class ApiRegion
java.lang.Object
org.apache.sling.feature.extension.apiregions.api.ApiRegion
Describes an api region for Java API
This class is not thread safe.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd the export.booleangetAllExportByName(String name) Get an export by namegetExportByName(String name) Get an export by nameorg.apache.sling.feature.ArtifactId[]getName()Get the name of the regionGet the parent regionGet additional propertiesinthashCode()booleanisEmpty()Check if the region has exportsUnmodifiable collection of exports for this region and all parents.Unmodifiable collection of exports for this regionbooleanRemove the exportvoidsetFeatureOrigins(org.apache.sling.feature.ArtifactId... featureOrigins) toString()
-
Field Details
-
GLOBAL
-
-
Constructor Details
-
ApiRegion
-
-
Method Details
-
getName
-
getFeatureOrigins
public org.apache.sling.feature.ArtifactId[] getFeatureOrigins() -
setFeatureOrigins
public void setFeatureOrigins(org.apache.sling.feature.ArtifactId... featureOrigins) -
add
Add the export. The export is only added if there isn't already a export with the same name- Parameters:
export- The export to add- Returns:
trueif the export could be added,falseotherwise
-
remove
Remove the export- Parameters:
export- export to remove- Returns:
trueif the export got removed.
-
isEmpty
public boolean isEmpty()Check if the region has exports- Returns:
trueif it has any export
-
listExports
Unmodifiable collection of exports for this region- Returns:
- The collection of exports
-
listAllExports
Unmodifiable collection of exports for this region and all parents.- Returns:
- The collection of exports
-
getExportByName
-
getAllExportByName
-
getProperties
-
getParent
-
toString
-
hashCode
-
equals
-