org.jboss.shrinkwrap.descriptor.api.ejbjar32.ResultTypeMappingType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.ejbjar32;
/**
* This class implements the result-type-mappingType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
public enum ResultTypeMappingType
{
_LOCAL("Local"),
_REMOTE("Remote");
private String value;
ResultTypeMappingType (String value) { this.value = value; }
public String toString() {return value;}
public static ResultTypeMappingType getFromStringValue(String value)
{
for(ResultTypeMappingType type: ResultTypeMappingType.values())
{
if(value != null && type.toString().equals(value))
{ return type;}
}
return null;
}
}