public class EnumService extends Object
Modifier and Type | Field and Description |
---|---|
static org.eclipse.uml2.uml.Package |
enumPkg |
Constructor and Description |
---|
EnumService() |
Modifier and Type | Method and Description |
---|---|
static void |
checkAndCreateDependency(org.eclipse.uml2.uml.Classifier classifier,
org.eclipse.uml2.uml.NamedElement target)
Create a dependency between the passed classifier, target pair.
|
static void |
createEnumPackage(org.eclipse.uml2.uml.Package root) |
static void |
createEnums() |
static String |
enumSvcPrefix()
Return qualified name of enum package which is used to prefix enumerations (namespace)
|
static void |
init() |
static String |
literal(String enumName,
String literal)
Create a literal within an enumeration.
|
static String |
literal(String enumName,
String literal,
int initialValue)
Create a literal within an enumeration.
|
static String |
literalKey(org.eclipse.uml2.uml.Element dummy,
String enumName,
String literalKey) |
static String |
quoteLiteral(org.eclipse.uml2.uml.Element dummy,
String enumName,
String literal) |
public static void init()
public static String enumSvcPrefix()
dummy
- public static String literalKey(org.eclipse.uml2.uml.Element dummy, String enumName, String literalKey)
public static String quoteLiteral(org.eclipse.uml2.uml.Element dummy, String enumName, String literal)
public static String literal(String enumName, String literal)
enumName
- the name of an enumerationliteral
- the name of a literal within that enumeration.public static String literal(String enumName, String literal, int initialValue)
enumName
- the name of an enumerationliteral
- the name of a literal within that enumeration.public static void checkAndCreateDependency(org.eclipse.uml2.uml.Classifier classifier, org.eclipse.uml2.uml.NamedElement target)
classifier
- a classifiertarget
- a target, on which the classifier or its code depends.public static void createEnumPackage(org.eclipse.uml2.uml.Package root)
public static void createEnums()
Copyright © 2016 Eclipse foundation. All rights reserved.