org.rhq.core.domain.bundle
Class Bundle

java.lang.Object
  extended by org.rhq.core.domain.bundle.Bundle
All Implemented Interfaces:
Serializable

public class Bundle
extends Object
implements Serializable

Defines a bundle of content that can be versioned.

See Also:
Serialized Form

Field Summary
static String QUERY_FIND_ALL
           
static String QUERY_FIND_BY_NAME
           
static String QUERY_FIND_BY_TYPE_AND_NAME
           
 
Constructor Summary
Bundle()
           
Bundle(String name, BundleType type, Repo repo, PackageType packageType)
           
 
Method Summary
 void addBundleVersion(BundleVersion bundleVersion)
           
 void addDestination(BundleDestination destination)
           
 void addTag(Tag tag)
           
 boolean equals(Object obj)
           
 BundleType getBundleType()
           
 List<BundleVersion> getBundleVersions()
           
 String getDescription()
           
 List<BundleDestination> getDestinations()
           
 int getId()
           
 String getName()
           
 PackageType getPackageType()
           
 Repo getRepo()
           
 Set<Tag> getTags()
           
 int hashCode()
           
 boolean removeTag(Tag tag)
           
 void setBundleType(BundleType bundleType)
           
 void setBundleVersions(List<BundleVersion> bundleVersions)
           
 void setDescription(String description)
           
 void setDestinations(List<BundleDestination> destinations)
           
 void setId(int id)
           
 void setName(String name)
           
 void setPackageType(PackageType packageType)
           
 void setRepo(Repo repo)
           
 void setTags(Set<Tag> tags)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_ALL

public static final String QUERY_FIND_ALL
See Also:
Constant Field Values

QUERY_FIND_BY_NAME

public static final String QUERY_FIND_BY_NAME
See Also:
Constant Field Values

QUERY_FIND_BY_TYPE_AND_NAME

public static final String QUERY_FIND_BY_TYPE_AND_NAME
See Also:
Constant Field Values
Constructor Detail

Bundle

public Bundle()

Bundle

public Bundle(String name,
              BundleType type,
              Repo repo,
              PackageType packageType)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getBundleType

public BundleType getBundleType()

setBundleType

public void setBundleType(BundleType bundleType)

getPackageType

public PackageType getPackageType()

setPackageType

public void setPackageType(PackageType packageType)

getRepo

public Repo getRepo()

setRepo

public void setRepo(Repo repo)

getBundleVersions

public List<BundleVersion> getBundleVersions()

addBundleVersion

public void addBundleVersion(BundleVersion bundleVersion)

setBundleVersions

public void setBundleVersions(List<BundleVersion> bundleVersions)

getDestinations

public List<BundleDestination> getDestinations()

addDestination

public void addDestination(BundleDestination destination)

setDestinations

public void setDestinations(List<BundleDestination> destinations)

getTags

public Set<Tag> getTags()

setTags

public void setTags(Set<Tag> tags)

addTag

public void addTag(Tag tag)

removeTag

public boolean removeTag(Tag tag)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.