org.jboss.shrinkwrap.descriptor.api.ejbjar31.MultiplicityType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.ejbjar31;
/**
* This class implements the multiplicityType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public enum MultiplicityType
{
_ONE("One"),
_MANY("Many");
private String value;
MultiplicityType (String value) { this.value = value; }
public String toString() {return value;}
public static MultiplicityType getFromStringValue(String value)
{
for(MultiplicityType type: MultiplicityType.values())
{
if(value != null && type.toString().equals(value))
{ return type;}
}
return null;
}
}