Class ContentPackageDescriptor
- java.lang.Object
-
- org.apache.sling.feature.scanner.Descriptor
-
- org.apache.sling.feature.scanner.ArtifactDescriptor
-
- org.apache.sling.feature.scanner.impl.ContentPackageDescriptor
-
public class ContentPackageDescriptor extends ArtifactDescriptor
Information about a content package.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<BundleDescriptor>bundlesBundles in the content package.java.util.List<org.apache.sling.feature.Configuration>configsConfigurations in the content package.
-
Constructor Summary
Constructors Constructor Description ContentPackageDescriptor(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.feature.ArtifactgetArtifact()Get the artifactjava.net.URLgetArtifactFile()Get the artifact fileorg.apache.sling.feature.ArtifactgetContentPackage()Get the content packagejava.lang.StringgetContentPath()Get the content pathjava.lang.StringgetName()Returns the name of the entity associated with this descriptor.booleanhasEmbeddedArtifacts()booleanisEmbeddedInContentPackage()Whether this artifact is embedded in a content packagevoidsetArtifact(org.apache.sling.feature.Artifact artifact)Set the artifactvoidsetArtifactFile(java.net.URL artifactFile)Set the artifact filevoidsetContentPackageInfo(org.apache.sling.feature.Artifact artifact, java.lang.String path)Set the information about the content package containing this artifactvoidsetName(java.lang.String value)java.lang.StringtoString()-
Methods inherited from class org.apache.sling.feature.scanner.Descriptor
aggregate, checkLocked, getCapabilities, getDynamicImportedPackages, getExportedPackages, getImportedPackages, getRequirements, isLocked, lock
-
-
-
-
Field Detail
-
bundles
public final java.util.List<BundleDescriptor> bundles
Bundles in the content package.
-
configs
public final java.util.List<org.apache.sling.feature.Configuration> configs
Configurations in the content package.
-
-
Method Detail
-
getArtifactFile
public java.net.URL getArtifactFile()
Get the artifact file- Specified by:
getArtifactFilein classArtifactDescriptor- Returns:
- The artifact file
-
getArtifact
public org.apache.sling.feature.Artifact getArtifact()
Get the artifact- Specified by:
getArtifactin classArtifactDescriptor- Returns:
- The artifact
-
setArtifact
public void setArtifact(org.apache.sling.feature.Artifact artifact)
Set the artifact- Parameters:
artifact- The artifact
-
setArtifactFile
public void setArtifactFile(java.net.URL artifactFile)
Set the artifact file- Parameters:
artifactFile- The artifact file
-
getContentPackage
public org.apache.sling.feature.Artifact getContentPackage()
Get the content package- Returns:
- The content package or
null
-
getContentPath
public java.lang.String getContentPath()
Get the content path- Returns:
- The content path or
null
-
isEmbeddedInContentPackage
public boolean isEmbeddedInContentPackage()
Whether this artifact is embedded in a content package- Returns:
trueif embedded.
-
setContentPackageInfo
public void setContentPackageInfo(org.apache.sling.feature.Artifact artifact, java.lang.String path)Set the information about the content package containing this artifact- Parameters:
artifact- The packagepath- The path inside the package
-
getName
public java.lang.String getName()
Description copied from class:DescriptorReturns the name of the entity associated with this descriptor.- Overrides:
getNamein classDescriptor- Returns:
- the name.
-
setName
public void setName(java.lang.String value)
-
hasEmbeddedArtifacts
public boolean hasEmbeddedArtifacts()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDescriptor
-
-