com.threerings.jpkg.debian
Class PackageName

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

public class PackageName
extends Object
implements ControlFileData

Holds and parses the Debian package name.

See Also:
Debian Policy Manual

Constructor Summary
PackageName(String name)
          Construct a new package name.
 
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

PackageName

public PackageName(String name)
            throws ControlDataInvalidException
Construct a new package name. ControlDataInvalidException will be throw if the name is invalid.

Throws:
ControlDataInvalidException
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.