org.japtproxy.packages
Class RepoPackage

java.lang.Object
  extended by org.japtproxy.packages.RepoPackage
All Implemented Interfaces:
IRepoPackage

public class RepoPackage
extends java.lang.Object
implements IRepoPackage

This class builds and holds all parts of a repo package filename separated in their specified parts.

Version:
$LastChangedRevision$
Author:
Oliver J. Siegmar

Constructor Summary
RepoPackage(java.lang.String basename, java.lang.String version, java.lang.String revision, java.lang.String arch, java.lang.String extension)
          Constructs a repo package based on the given filename.
 
Method Summary
 java.lang.String getArch()
          Gets the arch part of this repo package.
 java.lang.String getBasename()
          Gets the basename part of this repo package.
 java.lang.String getExtension()
          Gets the extension part of this repo package.
 java.lang.String getRevision()
          Gets the revision part of this repo package.
 java.lang.String getVersion()
          Gets the version part of this repo package.
 void setArch(java.lang.String arch)
          Sets the arch part for this repo package.
 void setBasename(java.lang.String basename)
          Sets the basename part for this repo package.
 void setExtension(java.lang.String extension)
          Sets the extension part for this repo package.
 void setRevision(java.lang.String revision)
          Sets the revision part for this repo package.
 void setVersion(java.lang.String version)
          Sets the version part for this repo package.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepoPackage

public RepoPackage(java.lang.String basename,
                   java.lang.String version,
                   java.lang.String revision,
                   java.lang.String arch,
                   java.lang.String extension)
Constructs a repo package based on the given filename.

Method Detail

getArch

public java.lang.String getArch()
Gets the arch part of this repo package.

Specified by:
getArch in interface IRepoPackage
Returns:
the arch part of this repo package.

setArch

public void setArch(java.lang.String arch)
Sets the arch part for this repo package.

Specified by:
setArch in interface IRepoPackage
Parameters:
arch - the arch part for this repo package.

getBasename

public java.lang.String getBasename()
Gets the basename part of this repo package.

Specified by:
getBasename in interface IRepoPackage
Returns:
the basename part of this repo package.

setBasename

public void setBasename(java.lang.String basename)
Sets the basename part for this repo package.

Specified by:
setBasename in interface IRepoPackage
Parameters:
basename - the basename part for this repo package.

getRevision

public java.lang.String getRevision()
Gets the revision part of this repo package.

Specified by:
getRevision in interface IRepoPackage
Returns:
the revision part of this repo package.

setRevision

public void setRevision(java.lang.String revision)
Sets the revision part for this repo package.

Specified by:
setRevision in interface IRepoPackage
Parameters:
revision - the revision part for this repo package.

getVersion

public java.lang.String getVersion()
Gets the version part of this repo package.

Specified by:
getVersion in interface IRepoPackage
Returns:
the version part of this repo package.

setVersion

public void setVersion(java.lang.String version)
Sets the version part for this repo package.

Specified by:
setVersion in interface IRepoPackage
Parameters:
version - the version part of this repo package.

getExtension

public java.lang.String getExtension()
Gets the extension part of this repo package.

Specified by:
getExtension in interface IRepoPackage
Returns:
the extension part of this repo package.

setExtension

public void setExtension(java.lang.String extension)
Sets the extension part for this repo package.

Specified by:
setExtension in interface IRepoPackage
Parameters:
extension - the extension part of this repo package.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2008. All Rights Reserved.