Class ApiExport
- java.lang.Object
-
- org.apache.sling.feature.extension.apiregions.api.ApiExport
-
- All Implemented Interfaces:
Comparable<ApiExport>
public class ApiExport extends Object implements Comparable<ApiExport>
Describes an exported package. This class is not thread safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(ApiExport o)booleanequals(Object obj)DeprecationgetDeprecation()Get the deprecation infoStringgetName()Get the package nameorg.apache.sling.feature.ArtifactIdgetPrevious()Deprecated.org.apache.sling.feature.ArtifactIdgetPreviousArtifactId()Get the previous artifact id containing the previous versionStringgetPreviousPackageVersion()Get the previous version of this packageMap<String,String>getProperties()Get additional propertiesStringgetToggle()Get the optional toggle informationinthashCode()voidsetPrevious(org.apache.sling.feature.ArtifactId previous)Deprecated.voidsetPreviousArtifactId(org.apache.sling.feature.ArtifactId previous)Set the previous artifact idvoidsetPreviousPackageVersion(String version)Set the previous version of this packagevoidsetToggle(String toggle)Set the toggle info.StringtoString()
-
-
-
Constructor Detail
-
ApiExport
public ApiExport(String name)
Create a new export- Parameters:
name- Package name for the export
-
-
Method Detail
-
getName
public String getName()
Get the package name- Returns:
- The package name
-
getToggle
public String getToggle()
Get the optional toggle information- Returns:
- The toggle info or
null
-
setToggle
public void setToggle(String toggle)
Set the toggle info.- Parameters:
toggle- The toggle info
-
getPreviousPackageVersion
public String getPreviousPackageVersion()
Get the previous version of this package- Returns:
- The previous version of this package or
null - Since:
- 1.2.0
-
setPreviousPackageVersion
public void setPreviousPackageVersion(String version)
Set the previous version of this package- Parameters:
version- The previous version of this package- Since:
- 1.2.0
-
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
-
getPrevious
public org.apache.sling.feature.ArtifactId getPrevious()
Deprecated.Get the previous version of this api- Returns:
- The previous version or
null
-
setPrevious
public void setPrevious(org.apache.sling.feature.ArtifactId previous)
Deprecated.Set the previous version- Parameters:
previous- Previus version
-
getProperties
public Map<String,String> getProperties()
Get additional properties- Returns:
- Modifiable map of properties
-
getDeprecation
public Deprecation getDeprecation()
Get the deprecation info- Returns:
- The info
-
compareTo
public int compareTo(ApiExport o)
- Specified by:
compareToin interfaceComparable<ApiExport>
-
-