com.threerings.jpkg.debian.dependency
Enum DependencyRelationships

java.lang.Object
  extended by java.lang.Enum<DependencyRelationships>
      extended by com.threerings.jpkg.debian.dependency.DependencyRelationships
All Implemented Interfaces:
Serializable, Comparable<DependencyRelationships>

public enum DependencyRelationships
extends Enum<DependencyRelationships>

Holds the valid dependency relationships supported by Debian packaging system.

See Also:
Debian Policy Manual

Enum Constant Summary
EARLIER_OR_EQUAL
          The strictly earlier relationship, indicating the dependency's version must be "lesser" than or equal to the declared version.
EXACTLY_EQUAL
          The exactly equal relationship, indicating the dependency's version must be equal to the declared version.
LATER_OR_EQUAL
          The later or equal relationship, indicating the dependency's version must be "greater" than or equal to the declared version.
STRICTLY_EARLIER
          The strictly earlier relationship, indicating the dependency's version must be "lesser" than and not equal to the declared version.
STRICTLY_LATER
          The strictly later relationship, indicating the dependency's version must be "greater" than and not equal to the declared version.
 
Method Summary
 String getOperator()
          Returns the string representation of this dependency relationship.
static DependencyRelationships valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DependencyRelationships[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRICTLY_EARLIER

public static final DependencyRelationships STRICTLY_EARLIER
The strictly earlier relationship, indicating the dependency's version must be "lesser" than and not equal to the declared version.


EARLIER_OR_EQUAL

public static final DependencyRelationships EARLIER_OR_EQUAL
The strictly earlier relationship, indicating the dependency's version must be "lesser" than or equal to the declared version.


EXACTLY_EQUAL

public static final DependencyRelationships EXACTLY_EQUAL
The exactly equal relationship, indicating the dependency's version must be equal to the declared version.


LATER_OR_EQUAL

public static final DependencyRelationships LATER_OR_EQUAL
The later or equal relationship, indicating the dependency's version must be "greater" than or equal to the declared version.


STRICTLY_LATER

public static final DependencyRelationships STRICTLY_LATER
The strictly later relationship, indicating the dependency's version must be "greater" than and not equal to the declared version.

Method Detail

values

public static final DependencyRelationships[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DependencyRelationships c : DependencyRelationships.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static DependencyRelationships valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getOperator

public String getOperator()
Returns the string representation of this dependency relationship.



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