public class ApiRegion extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL
Name of the global region.
|
Constructor and Description |
---|
ApiRegion(String name)
Create a new named region
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(ApiExport export)
Add the export.
|
boolean |
equals(Object obj) |
ApiExport |
getAllExportByName(String name)
Get an export by name
|
ApiExport |
getExportByName(String name)
Get an export by name
|
org.apache.sling.feature.ArtifactId[] |
getFeatureOrigins() |
String |
getName()
Get the name of the region
|
ApiRegion |
getParent()
Get the parent region
|
Map<String,String> |
getProperties()
Get additional properties
|
int |
hashCode() |
boolean |
isEmpty()
Check if the region has exports
|
Collection<ApiExport> |
listAllExports()
Unmodifiable collection of exports for this region and all parents.
|
Collection<ApiExport> |
listExports()
Unmodifiable collection of exports for this region
|
boolean |
remove(ApiExport export)
Remove the export
|
void |
setFeatureOrigins(org.apache.sling.feature.ArtifactId... featureOrigins) |
String |
toString() |
public static final String GLOBAL
public ApiRegion(String name)
name
- The namepublic String getName()
public org.apache.sling.feature.ArtifactId[] getFeatureOrigins()
public void setFeatureOrigins(org.apache.sling.feature.ArtifactId... featureOrigins)
public boolean add(ApiExport export)
export
- The export to addtrue
if the export could be added, false
otherwisepublic boolean remove(ApiExport export)
export
- export to removetrue
if the export got removed.public boolean isEmpty()
true
if it has any exportpublic Collection<ApiExport> listExports()
public Collection<ApiExport> listAllExports()
public ApiExport getExportByName(String name)
name
- package namenull
public ApiExport getAllExportByName(String name)
name
- package namenull
public Map<String,String> getProperties()
public ApiRegion getParent()
null
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.