com.threerings.jpkg.debian
Class PackageArchitecture

java.lang.Object
  extended by com.threerings.jpkg.debian.PackageArchitecture
All Implemented Interfaces:
ControlFileData

public class PackageArchitecture
extends Object
implements ControlFileData

Holds and parses the Debian package architecture.

See Also:
Debian Policy Manual

Constructor Summary
PackageArchitecture(DebianArchitectures architecture)
          Construct a new PackageArchitecture using an architecture defined in the DebianArchitecture enum.
PackageArchitecture(String architecture)
          Construct a new PackageArchitecture object with an arbitrary string representing the architecture this package is to be installed on.
 
Method Summary
 String getField()
          Returns the field of the Debian control file this data belongs in.
 String getFieldValue()
          Returns the data in this class formatted for the Debian control file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageArchitecture

public PackageArchitecture(DebianArchitectures architecture)
Construct a new PackageArchitecture using an architecture defined in the DebianArchitecture enum.


PackageArchitecture

public PackageArchitecture(String architecture)
Construct a new PackageArchitecture object with an arbitrary string representing the architecture this package is to be installed on. NOTE: Users of this class are strongly encouraged to use the constructor for this class which uses the DebianArchitecture enum which was generated from the dpkg tools and should contain an exhaustive list of valid Debian architectures.

Method Detail

getField

public String getField()
Description copied from interface: ControlFileData
Returns the field of the Debian control file this data belongs in.

Specified by:
getField in interface ControlFileData

getFieldValue

public String getFieldValue()
Description copied from interface: ControlFileData
Returns the data in this class formatted for the Debian control file.

Specified by:
getFieldValue in interface ControlFileData


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.