org.rhq.enterprise.server.plugin.pc.content
Class DistributionDetails

java.lang.Object
  extended by org.rhq.enterprise.server.plugin.pc.content.DistributionDetails

public class DistributionDetails
extends Object

Author:
Pradeep Kilambi

Constructor Summary
DistributionDetails(String labelIn, String disttypeIn)
           
DistributionDetails(String labelIn, String distpathIn, String disttypeIn)
           
 
Method Summary
 void addFile(DistributionFileDetails file)
           
 void addFiles(List<DistributionFileDetails> filesIn)
           
 String getDescription()
          Returns a user-readable description of what the distribution contains.
 String getDistributionPath()
          Return the distribution path on filesystem
 String getDistributionType()
          Returns the distribution type.
 List<DistributionFileDetails> getFiles()
           
 String getLabel()
          Returns the identifying name of the distribution.
 void setDescription(String description)
          Sets the name of the user-readable description of the distribution.
 void setDistributionPath(String distpath)
          sets the distribution path value for a single distribution instance
 void setDistributionType(String distType)
           
 void setFiles(List<DistributionFileDetails> filesIn)
           
 void setLabel(String label)
          Sets the name of the distribution being represented.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistributionDetails

public DistributionDetails(String labelIn,
                           String disttypeIn)

DistributionDetails

public DistributionDetails(String labelIn,
                           String distpathIn,
                           String disttypeIn)
Method Detail

addFile

public void addFile(DistributionFileDetails file)

addFiles

public void addFiles(List<DistributionFileDetails> filesIn)

getFiles

public List<DistributionFileDetails> getFiles()

setFiles

public void setFiles(List<DistributionFileDetails> filesIn)

getLabel

public String getLabel()
Returns the identifying name of the distribution.

Returns:
cannot be null

setLabel

public void setLabel(String label)
Sets the name of the distribution being represented.

Parameters:
label - cannot be null
Throws:
IllegalArgumentException - is name is null

getDistributionType

public String getDistributionType()
Returns the distribution type.

Returns:
may be null

setDistributionType

public void setDistributionType(String distType)
Parameters:
distType - may be null

getDescription

public String getDescription()
Returns a user-readable description of what the distribution contains.

Returns:
may be null

setDescription

public void setDescription(String description)
Sets the name of the user-readable description of the distribution.

Parameters:
description - may be null

getDistributionPath

public String getDistributionPath()
Return the distribution path on filesystem

Returns:

setDistributionPath

public void setDistributionPath(String distpath)
sets the distribution path value for a single distribution instance

Parameters:
distpath - distribution path

toString

public String toString()
Overrides:
toString in class Object


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