Package org.fedoraproject.xmvn.metadata
Class PackageMetadata
java.lang.Object
org.fedoraproject.xmvn.metadata.PackageMetadata
- All Implemented Interfaces:
Serializable,Cloneable
Root element of the metadata file.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArtifact(ArtifactMetadata artifactMetadata) Method addArtifact.voidaddProperty(String key, String value) Method addProperty.voidaddSkippedArtifact(SkippedArtifactMetadata skippedArtifactMetadata) Method addSkippedArtifact.clone()Method clone.Method getArtifacts.Get the modelEncoding field.Method getProperties.Method getSkippedArtifacts.getUuid()Get universally unique identifier of this piece of metadata.voidremoveArtifact(ArtifactMetadata artifactMetadata) Method removeArtifact.voidremoveSkippedArtifact(SkippedArtifactMetadata skippedArtifactMetadata) Method removeSkippedArtifact.voidsetArtifacts(List<ArtifactMetadata> artifacts) Set list of installed artifacts described by this piece of metadata.voidsetModelEncoding(String modelEncoding) Set the modelEncoding field.voidsetProperties(Properties properties) Set properties of this piece of metadata.voidsetSkippedArtifacts(List<SkippedArtifactMetadata> skippedArtifacts) Set list of artifacts built but not installed in any package.voidSet universally unique identifier of this piece of metadata.
-
Constructor Details
-
PackageMetadata
public PackageMetadata()
-
-
Method Details
-
addArtifact
Method addArtifact.- Parameters:
artifactMetadata- a artifactMetadata object.
-
addProperty
Method addProperty.- Parameters:
key- a key object.value- a value object.
-
addSkippedArtifact
Method addSkippedArtifact.- Parameters:
skippedArtifactMetadata- a skippedArtifactMetadata object.
-
clone
Method clone. -
getArtifacts
Method getArtifacts.- Returns:
- List
-
getModelEncoding
Get the modelEncoding field.- Returns:
- String
-
getProperties
Method getProperties.- Returns:
- Properties
-
getSkippedArtifacts
Method getSkippedArtifacts.- Returns:
- List
-
getUuid
Get universally unique identifier of this piece of metadata.- Returns:
- String
-
removeArtifact
Method removeArtifact.- Parameters:
artifactMetadata- a artifactMetadata object.
-
removeSkippedArtifact
Method removeSkippedArtifact.- Parameters:
skippedArtifactMetadata- a skippedArtifactMetadata object.
-
setArtifacts
Set list of installed artifacts described by this piece of metadata.- Parameters:
artifacts- a artifacts object.
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding- a modelEncoding object.
-
setProperties
Set properties of this piece of metadata.- Parameters:
properties- a properties object.
-
setSkippedArtifacts
Set list of artifacts built but not installed in any package. Useful for detecting broken package dependencies.- Parameters:
skippedArtifacts- a skippedArtifacts object.
-
setUuid
Set universally unique identifier of this piece of metadata.- Parameters:
uuid- a uuid object.
-