public class AnnexUtil
extends java.lang.Object
Constructor and Description |
---|
AnnexUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addLibs(PackageSection packsec,
java.util.List<DefaultAnnexLibrary> result)
add default annex libraries of packsec.
|
static void |
addSubclauses(ComponentClassifier cl,
java.util.List<DefaultAnnexSubclause> result) |
static void |
addSubclauses(PackageSection packsec,
java.util.List<DefaultAnnexSubclause> result)
add default annex subclauses of packsec.
|
static java.util.List<DefaultAnnexLibrary> |
getAllDefaultAnnexLibraries(org.eclipse.emf.ecore.EObject root) |
static java.util.List<DefaultAnnexSubclause> |
getAllDefaultAnnexSubclauses(org.eclipse.emf.ecore.EObject root) |
static AnnexParseResult |
getAnnexParseResult(org.eclipse.emf.ecore.EObject obj) |
static org.eclipse.emf.ecore.EObject |
getAnnexRootElement(org.eclipse.emf.ecore.EObject obj)
get the root element of the actual annex subclause/library for the given default annex subclause/library
|
static int |
getLineNumberFor(org.eclipse.emf.ecore.EObject obj)
get the line number for a given model object in the core model
This method makes use of the Xtext parse tree.
|
public static AnnexParseResult getAnnexParseResult(org.eclipse.emf.ecore.EObject obj)
public static org.eclipse.emf.ecore.EObject getAnnexRootElement(org.eclipse.emf.ecore.EObject obj)
obj
- EObject DefaultAnnexSubclause or DefaultAnnexLibrarypublic static int getLineNumberFor(org.eclipse.emf.ecore.EObject obj)
public static java.util.List<DefaultAnnexLibrary> getAllDefaultAnnexLibraries(org.eclipse.emf.ecore.EObject root)
public static void addLibs(PackageSection packsec, java.util.List<DefaultAnnexLibrary> result)
packsec
- result
- public static java.util.List<DefaultAnnexSubclause> getAllDefaultAnnexSubclauses(org.eclipse.emf.ecore.EObject root)
public static void addSubclauses(PackageSection packsec, java.util.List<DefaultAnnexSubclause> result)
packsec
- result
- public static void addSubclauses(ComponentClassifier cl, java.util.List<DefaultAnnexSubclause> result)