Project: stp

com.ibm.rational.wvcm.stp.cc
Enum CcTypeBase.InstanceConstraint

Object
  extended by Enum<CcTypeBase.InstanceConstraint>
      extended by CcTypeBase.InstanceConstraint
All Implemented Interfaces:
com.ibm.rational.wvcm.stpex.StpExEnumeration, Serializable, Comparable<CcTypeBase.InstanceConstraint>
Enclosing interface:
CcTypeBase

public static enum CcTypeBase.InstanceConstraint
extends Enum<CcTypeBase.InstanceConstraint>
implements com.ibm.rational.wvcm.stpex.StpExEnumeration

Instance constraint of a ClearCase type object. A type object's instance constraint determines where the type may be applied. Some metatypes do not support all (or any) instance constraints. Instance constraint is one of

  • None. There are no special constraints on this metatype beyond the default behaviour for the type.
  • Element. Type instance may only occur once per element,
  • Branch. Type instances may occur on multiple branches, but only once per branch,
  • Version. Type instance may only be attached to versions, but may be attached to as many versions as desired
  • For more information, see the ClearCase Administrator's Guide.


    Enum Constant Summary
    BRANCH
              Once per branch.
    ELEMENT
              Once per element.
    NONE
              Default constraint for this type.
    VERSION
              Versions only, as many as desired.
     
    Method Summary
    static CcTypeBase.InstanceConstraint byTag(Object tag)
              Returns the InstanceConstraint enumerator defined by the given Object
    static CcTypeBase.InstanceConstraint valueOf(String name)
              Returns the enum constant of this type with the specified name.
    static CcTypeBase.InstanceConstraint[] values()
              Returns an array containing the constants of this enum type, in the order they are declared.
     
    Methods inherited from class Enum
    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
     
    Methods inherited from class Object
    getClass, notify, notifyAll, wait, wait, wait
     

    Enum Constant Detail

    BRANCH

    public static final CcTypeBase.InstanceConstraint BRANCH
    Once per branch.


    ELEMENT

    public static final CcTypeBase.InstanceConstraint ELEMENT
    Once per element.


    NONE

    public static final CcTypeBase.InstanceConstraint NONE
    Default constraint for this type.


    VERSION

    public static final CcTypeBase.InstanceConstraint VERSION
    Versions only, as many as desired.

    Method Detail

    byTag

    public static CcTypeBase.InstanceConstraint byTag(Object tag)
    Returns the InstanceConstraint enumerator defined by the given Object

    Parameters:
    tag - The Object for which an enumerator is sought
    Returns:
    An InstanceConstraint object that is based on the given Object. Will be null if no such enumerator exists.

    valueOf

    public static CcTypeBase.InstanceConstraint 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
    NullPointerException - if the argument is null

    values

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

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

    Generated Tue 7-Feb-2017 11:15 PM

    Copyright © IBM 2017. All rights reserved.