📄 tnodetype.java
字号:
/**
* <copyright>
* </copyright>
*
* $Id: TNodeType.java,v 1.4 2006/12/16 09:04:44 niegy Exp $
*/
package com.primeton.studio.gef.core;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.AbstractEnumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>TNode Type</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see com.primeton.studio.gef.core.CorePackage#getTNodeType()
* @model
* @generated
*/
public final class TNodeType extends AbstractEnumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "";
/**
* The '<em><b>Common</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Common</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #COMMON_LITERAL
* @model name="common"
* @generated
* @ordered
*/
public static final int COMMON = 0;
/**
* The '<em><b>Parent</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Parent</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #PARENT_LITERAL
* @model name="parent"
* @generated
* @ordered
*/
public static final int PARENT = 1;
/**
* The '<em><b>Child</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Child</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #CHILD_LITERAL
* @model name="child"
* @generated
* @ordered
*/
public static final int CHILD = 2;
/**
* The '<em><b>Table</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Table</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #TABLE_LITERAL
* @model name="table"
* @generated
* @ordered
*/
public static final int TABLE = 3;
/**
* The '<em><b>Attricolumn</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Attricolumn</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #ATTRICOLUMN_LITERAL
* @model name="attricolumn"
* @generated
* @ordered
*/
public static final int ATTRICOLUMN = 4;
/**
* The '<em><b>Operationcolumn</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Operationcolumn</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #OPERATIONCOLUMN_LITERAL
* @model name="operationcolumn"
* @generated
* @ordered
*/
public static final int OPERATIONCOLUMN = 5;
/**
* The '<em><b>Others</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Others</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #OTHERS_LITERAL
* @model name="others"
* @generated
* @ordered
*/
public static final int OTHERS = 8;
/**
* The '<em><b>Label</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Label</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LABEL_LITERAL
* @model name="label"
* @generated
* @ordered
*/
public static final int LABEL = 6;
/**
* The '<em><b>Note</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Note</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #NOTE_LITERAL
* @model name="note"
* @generated
* @ordered
*/
public static final int NOTE = 7;
/**
* The '<em><b>Common</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #COMMON
* @generated
* @ordered
*/
public static final TNodeType COMMON_LITERAL = new TNodeType(COMMON, "common", "common");
/**
* The '<em><b>Parent</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #PARENT
* @generated
* @ordered
*/
public static final TNodeType PARENT_LITERAL = new TNodeType(PARENT, "parent", "parent");
/**
* The '<em><b>Child</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CHILD
* @generated
* @ordered
*/
public static final TNodeType CHILD_LITERAL = new TNodeType(CHILD, "child", "child");
/**
* The '<em><b>Table</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #TABLE
* @generated
* @ordered
*/
public static final TNodeType TABLE_LITERAL = new TNodeType(TABLE, "table", "table");
/**
* The '<em><b>Attricolumn</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ATTRICOLUMN
* @generated
* @ordered
*/
public static final TNodeType ATTRICOLUMN_LITERAL = new TNodeType(ATTRICOLUMN, "attricolumn", "attricolumn");
/**
* The '<em><b>Operationcolumn</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OPERATIONCOLUMN
* @generated
* @ordered
*/
public static final TNodeType OPERATIONCOLUMN_LITERAL = new TNodeType(OPERATIONCOLUMN, "operationcolumn", "operationcolumn");
/**
* The '<em><b>Others</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OTHERS
* @generated
* @ordered
*/
public static final TNodeType OTHERS_LITERAL = new TNodeType(OTHERS, "others", "others");
/**
* The '<em><b>Label</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LABEL
* @generated
* @ordered
*/
public static final TNodeType LABEL_LITERAL = new TNodeType(LABEL, "label", "label");
/**
* The '<em><b>Note</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NOTE
* @generated
* @ordered
*/
public static final TNodeType NOTE_LITERAL = new TNodeType(NOTE, "note", "note");
/**
* An array of all the '<em><b>TNode Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final TNodeType[] VALUES_ARRAY =
new TNodeType[] {
COMMON_LITERAL,
PARENT_LITERAL,
CHILD_LITERAL,
TABLE_LITERAL,
ATTRICOLUMN_LITERAL,
OPERATIONCOLUMN_LITERAL,
OTHERS_LITERAL,
LABEL_LITERAL,
NOTE_LITERAL,
};
/**
* A public read-only list of all the '<em><b>TNode Type</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>TNode Type</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static TNodeType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TNodeType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>TNode Type</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static TNodeType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TNodeType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>TNode Type</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static TNodeType get(int value) {
switch (value) {
case COMMON: return COMMON_LITERAL;
case PARENT: return PARENT_LITERAL;
case CHILD: return CHILD_LITERAL;
case TABLE: return TABLE_LITERAL;
case ATTRICOLUMN: return ATTRICOLUMN_LITERAL;
case OPERATIONCOLUMN: return OPERATIONCOLUMN_LITERAL;
case OTHERS: return OTHERS_LITERAL;
case LABEL: return LABEL_LITERAL;
case NOTE: return NOTE_LITERAL;
}
return null;
}
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private TNodeType(int value, String name, String literal) {
super(value, name, literal);
}
} //TNodeType
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -