com.threerings.jpkg.debian
Class PackageMaintainer

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

public class PackageMaintainer
extends Object
implements ControlFileData

Holds and parses the Debian package maintainer.

See Also:
Debian Policy Manual

Constructor Summary
PackageMaintainer(String name, String address)
          Construct a new PackageMaintainer.
 
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

PackageMaintainer

public PackageMaintainer(String name,
                         String address)
                  throws ControlDataInvalidException
Construct a new PackageMaintainer. The address will be parsed and an exception thrown if it is not a valid RFC822 address. The maintainer's name will also be verified to not contain a period.

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.