Class ApiExport
java.lang.Object
org.apache.sling.feature.extension.apiregions.api.ApiExport
- All Implemented Interfaces:
Comparable<ApiExport>
Describes an exported package.
This class is not thread safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanGet the deprecation infoGet the optional library information.getName()Get the package nameorg.apache.sling.feature.ArtifactIdGet the previous artifact id containing the previous versionGet additional propertiesGet the optional toggle informationinthashCode()voidsetLibrary(String value) Set the library information.voidsetPreviousArtifactId(org.apache.sling.feature.ArtifactId previous) Set the previous artifact idvoidSet the toggle info.toString()
-
Constructor Details
-
ApiExport
Create a new export- Parameters:
name- Package name for the export
-
-
Method Details
-
getName
Get the package name- Returns:
- The package name
-
getToggle
Get the optional toggle information- Returns:
- The toggle info or
null
-
setToggle
Set the toggle info.- Parameters:
toggle- The toggle info
-
getPreviousArtifactId
public org.apache.sling.feature.ArtifactId getPreviousArtifactId()Get the previous artifact id containing the previous version- Returns:
- The previous artifact id or
null - Since:
- 1.2.0
-
setPreviousArtifactId
public void setPreviousArtifactId(org.apache.sling.feature.ArtifactId previous) Set the previous artifact id- Parameters:
previous- Previus artifact id- Since:
- 1.2.0
-
getProperties
Get additional properties- Returns:
- Modifiable map of properties
-
getDeprecation
Get the deprecation info- Returns:
- The info
-
getLibrary
Get the optional library information.- Returns:
- The library or
null - Since:
- 2.1.0
-
setLibrary
Set the library information.- Parameters:
value- The library- Since:
- 2.1.0
-
compareTo
- Specified by:
compareToin interfaceComparable<ApiExport>
-
toString
-
hashCode
public int hashCode() -
equals
-