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="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
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-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.