org.jomc.model
Enum Multiplicity

Package class diagram package Multiplicity
java.lang.Object
  extended by java.lang.Enum<Multiplicity>
      extended by org.jomc.model.Multiplicity
All Implemented Interfaces:
Serializable, Comparable<Multiplicity>

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public enum Multiplicity
extends Enum<Multiplicity>

Java class for Multiplicity.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="Multiplicity">
   <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
     <enumeration value="One"/>
     <enumeration value="Many"/>
   </restriction>
 </simpleType>
 


Enum Constant Summary
MANY
          A multiplicity equal to MANY specifies that many implementations of the specification are allowed to exist among a set of modules (including none).
ONE
          A multiplicity equal to ONE specifies that no more than one implementation of the specification is allowed to exist among a set of modules (including none).
 
Method Summary
static Multiplicity fromValue(String v)
           
 String value()
           
static Multiplicity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Multiplicity[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ONE

public static final Multiplicity ONE
A multiplicity equal to ONE specifies that no more than one implementation of the specification is allowed to exist among a set of modules (including none).


MANY

public static final Multiplicity MANY
A multiplicity equal to MANY specifies that many implementations of the specification are allowed to exist among a set of modules (including none).

Method Detail

values

public static Multiplicity[] 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 (Multiplicity c : Multiplicity.values())
    System.out.println(c);

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

valueOf

public static Multiplicity 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

value

public String value()

fromValue

public static Multiplicity fromValue(String v)


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.