Package org.fedoraproject.xmvn.config
Class PackagingRule
- java.lang.Object
-
- org.fedoraproject.xmvn.config.PackagingRule
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class PackagingRule extends java.lang.Object implements java.io.Serializable, java.lang.CloneableIdentification of Maven Artifact.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PackagingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlias(Artifact artifact)Add an alias.voidaddFile(java.lang.String string)Method addFile.voidaddVersion(java.lang.String string)Method addVersion.PackagingRuleclone()Method clone.java.util.List<Artifact>getAliases()Method getAliases.ArtifactgetArtifactGlob()Get pattern specifying one or more Maven artifacts.java.util.List<java.lang.String>getFiles()Method getFiles.java.lang.StringgetTargetPackage()Get name of binary package into which artifacts are assigned.java.lang.StringgetTargetRepository()Get iD of repository into which artifacts are installed.java.util.List<java.lang.String>getVersions()Method getVersions.java.lang.BooleanisMatched()Get whether any reactor artifact matches artifact glob pattern or this rule.java.lang.BooleanisOptional()Get whether this rule is optional.voidremoveAlias(Artifact artifact)Remove an alias.voidremoveFile(java.lang.String string)Method removeFile.voidremoveVersion(java.lang.String string)Method removeVersion.voidsetAliases(java.util.List<Artifact> aliases)Set alternative identifiers of artifacts.voidsetArtifactGlob(Artifact artifactGlob)Set pattern specifying one or more Maven artifacts.voidsetFiles(java.util.List<java.lang.String> files)Set files holding the artifact.voidsetMatched(java.lang.Boolean matched)Set whether any reactor artifact matches artifact glob pattern or this rule.voidsetOptional(java.lang.Boolean optional)Set whether this rule is optional.voidsetTargetPackage(java.lang.String targetPackage)Set name of binary package into which artifacts are assigned.voidsetTargetRepository(java.lang.String targetRepository)Set iD of repository into which artifacts are installed.voidsetVersions(java.util.List<java.lang.String> versions)Set compatibility versions of the artifact.
-
-
-
Method Detail
-
addFile
public void addFile(java.lang.String string)
Method addFile.- Parameters:
string- a string object.
-
addVersion
public void addVersion(java.lang.String string)
Method addVersion.- Parameters:
string- a string object.
-
clone
public PackagingRule clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- PackagingRule
-
getAliases
public java.util.List<Artifact> getAliases()
Method getAliases.- Returns:
- List
-
getArtifactGlob
public Artifact getArtifactGlob()
Get pattern specifying one or more Maven artifacts.- Returns:
- Artifact
-
getFiles
public java.util.List<java.lang.String> getFiles()
Method getFiles.- Returns:
- List
-
getTargetPackage
public java.lang.String getTargetPackage()
Get name of binary package into which artifacts are assigned.- Returns:
- String
-
getTargetRepository
public java.lang.String getTargetRepository()
Get iD of repository into which artifacts are installed.- Returns:
- String
-
getVersions
public java.util.List<java.lang.String> getVersions()
Method getVersions.- Returns:
- List
-
isMatched
public java.lang.Boolean isMatched()
Get whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.- Returns:
- Boolean
-
isOptional
public java.lang.Boolean isOptional()
Get whether this rule is optional. Non-optional rules cause uild failure if they are not matched.- Returns:
- Boolean
-
removeFile
public void removeFile(java.lang.String string)
Method removeFile.- Parameters:
string- a string object.
-
removeVersion
public void removeVersion(java.lang.String string)
Method removeVersion.- Parameters:
string- a string object.
-
setAliases
public void setAliases(java.util.List<Artifact> aliases)
Set alternative identifiers of artifacts.- Parameters:
aliases- a aliases object.
-
setArtifactGlob
public void setArtifactGlob(Artifact artifactGlob)
Set pattern specifying one or more Maven artifacts.- Parameters:
artifactGlob- a artifactGlob object.
-
setFiles
public void setFiles(java.util.List<java.lang.String> files)
Set files holding the artifact.- Parameters:
files- a files object.
-
setMatched
public void setMatched(java.lang.Boolean matched)
Set whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.- Parameters:
matched- a matched object.
-
setOptional
public void setOptional(java.lang.Boolean optional)
Set whether this rule is optional. Non-optional rules cause uild failure if they are not matched.- Parameters:
optional- a optional object.
-
setTargetPackage
public void setTargetPackage(java.lang.String targetPackage)
Set name of binary package into which artifacts are assigned.- Parameters:
targetPackage- a targetPackage object.
-
setTargetRepository
public void setTargetRepository(java.lang.String targetRepository)
Set iD of repository into which artifacts are installed.- Parameters:
targetRepository- a targetRepository object.
-
setVersions
public void setVersions(java.util.List<java.lang.String> versions)
Set compatibility versions of the artifact.- Parameters:
versions- a versions object.
-
addAlias
public void addAlias(Artifact artifact)
Add an alias.- Parameters:
artifact- alias to be added
-
removeAlias
public void removeAlias(Artifact artifact)
Remove an alias.- Parameters:
artifact- alias to be removed
-
-