| <?xml version="1.0" encoding="ASCII"?><java:Classifier xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://www.eclipse.org/intent/bridges/java/0.8" name="org.eclipse.myly.docs.intent.java.example.ExampleEnum" kind="ENUM"> <javadoc content="/**
 * <!-- begin-user-doc --> A representation of the literals of the enumeration '
 * <em><b>Intent Section Visibility</b></em>', and utility methods for working with them. <!-- end-user-doc
 * -->
 * 
 * @see org.eclipse.mylyn.docs.intent.core.document.IntentDocumentPackage#getIntentSectionVisibility()
 * @model
 * @generated
 */"/> <fields name="PUBLIC" visibility="PACKAGE" type="ExampleEnum"> <javadoc content="/**
	 * The '<em><b>PUBLIC</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @see #PUBLIC_VALUE
	 * @generated
	 * @ordered
	 */"/> </fields> <fields name="HIDDEN" visibility="PACKAGE" type="ExampleEnum"> <javadoc content="/**
	 * The '<em><b>HIDDEN</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @see #HIDDEN_VALUE
	 * @generated
	 * @ordered
	 */"/> </fields> <fields name="INTERNAL" visibility="PACKAGE" type="ExampleEnum"> <javadoc content="/**
	 * The '<em><b>INTERNAL</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @see #INTERNAL_VALUE
	 * @generated
	 * @ordered
	 */"/> </fields> <fields name="PUBLIC_VALUE" static="true" final="true" type="int"> <javadoc content="/**
	 * The '<em><b>PUBLIC</b></em>' literal value. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PUBLIC</b></em>' literal object isn't clear, there really should be more of a
	 * description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @see #PUBLIC
	 * @model
	 * @generated
	 * @ordered
	 */"/> </fields> <fields name="HIDDEN_VALUE" static="true" final="true" type="int"> <javadoc content="/**
	 * The '<em><b>HIDDEN</b></em>' literal value. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>HIDDEN</b></em>' literal object isn't clear, there really should be more of a
	 * description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @see #HIDDEN
	 * @model
	 * @generated
	 * @ordered
	 */"/> </fields> <fields name="INTERNAL_VALUE" static="true" final="true" type="int"> <javadoc content="/**
	 * The '<em><b>INTERNAL</b></em>' literal value. <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>INTERNAL</b></em>' literal object isn't clear, there really should be more of
	 * a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * 
	 * @see #INTERNAL
	 * @model
	 * @generated
	 * @ordered
	 */"/> </fields> <fields name="VALUES_ARRAY" visibility="PRIVATE" static="true" final="true" type="ExampleEnum[]"> <javadoc content="/**
	 * An array of all the '<em><b>Intent Section Visibility</b></em>' enumerators. <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </fields> <fields name="VALUES" static="true" final="true" type="List<ExampleEnum>"> <javadoc content="/**
	 * A public read-only list of all the '<em><b>Intent Section Visibility</b></em>' enumerators. <!--
	 * begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </fields> <fields name="value" visibility="PRIVATE" final="true" type="int"> <javadoc content="/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </fields> <fields name="name" visibility="PRIVATE" final="true" type="String"> <javadoc content="/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </fields> <fields name="literal" visibility="PRIVATE" final="true" type="String"> <javadoc content="/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </fields> <methods name="get(String)" static="true" simpleName="get" returnType="ExampleEnum" content="for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ExampleEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;"> <javadoc content="/**
	 * Returns the '<em><b>Intent Section Visibility</b></em>' literal with the specified literal value. <!--
	 * begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> <parameters name="literal" type="String"/> </methods> <methods name="getByName(String)" static="true" simpleName="getByName" returnType="ExampleEnum" content="for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ExampleEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;"> <javadoc content="/**
	 * Returns the '<em><b>Intent Section Visibility</b></em>' literal with the specified name. <!--
	 * begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> <parameters name="name" type="String"/> </methods> <methods name="get(int)" static="true" simpleName="get" returnType="ExampleEnum" content="switch (value) {
case PUBLIC_VALUE:
return PUBLIC;
case HIDDEN_VALUE:
return HIDDEN;
case INTERNAL_VALUE:
return INTERNAL;
}
return null;"> <javadoc content="/**
	 * Returns the '<em><b>Intent Section Visibility</b></em>' literal with the specified integer value. <!--
	 * begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> <parameters name="value" type="int"/> </methods> <methods xsi:type="java:Constructor" name="ExampleEnum(int,String,String)" visibility="PRIVATE" simpleName="ExampleEnum" returnType="void" content="this.value = value;
this.name = name;
this.literal = literal;"> <javadoc content="/**
	 * Only this class can construct instances. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> <parameters name="value" type="int"/> <parameters name="name" type="String"/> <parameters name="literal" type="String"/> </methods> <methods name="getValue()" simpleName="getValue" returnType="int" content="return value;"> <javadoc content="/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </methods> <methods name="getName()" simpleName="getName" returnType="String" content="return name;"> <javadoc content="/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </methods> <methods name="getLiteral()" simpleName="getLiteral" returnType="String" content="return literal;"> <javadoc content="/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </methods> <methods name="toString()" simpleName="toString" returnType="String" content="return literal;"> <javadoc content="/**
	 * Returns the literal value of the enumerator, which is its string representation. <!-- begin-user-doc
	 * --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */"/> </methods></java:Classifier> |