hu.soft4d.minerva.xmi
Class XmiUtil
java.lang.Object
hu.soft4d.minerva.xmi.XmiUtil
public class XmiUtil
- extends java.lang.Object
- Author:
- Zsolt Kiss Gere, 4D Soft Ltd.
Method Summary |
static java.lang.String |
getAttribute(xmitools.xmiparser.XmiNode node,
java.lang.String attr)
|
static xmitools.xmiparser.XmiNode |
getChildByXmiId(xmitools.xmiparser.XmiNode node,
java.lang.String xmiId)
Searches the first child with the given xmi:id. |
static java.lang.String |
getTypeAttribute(xmitools.xmiparser.XmiNode node)
|
static java.lang.String |
getXmiId(xmitools.xmiparser.XmiNode node)
|
static java.lang.String |
getXmiType(xmitools.xmiparser.XmiNode node)
|
static boolean |
isOfStereotype(xmitools.xmiparser.XmiNode node,
java.lang.String profile,
java.lang.String stereotype)
Resembles UmlNode.getTag() |
static boolean |
isUmlPrimitiveType(xmitools.xmiparser.XmiNode node)
|
static java.lang.String |
nodeAsString(xmitools.xmiparser.XmiNode node)
|
protected static org.w3c.dom.NamedNodeMap |
printDomAttributes(org.w3c.dom.Element domElem)
|
static void |
printEnumeration(xmitools.xmiparser.XmiNode node)
|
static void |
printModel(xmitools.xmiparser.XmiModel model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LIBRARY_JAVA_PRIMITIVE_TYPES
public static final java.lang.String LIBRARY_JAVA_PRIMITIVE_TYPES
- See Also:
- Constant Field Values
LIBRARY_UML2_PRIMITIVE_TYPES
public static final java.lang.String LIBRARY_UML2_PRIMITIVE_TYPES
- See Also:
- Constant Field Values
FILE_JAVA_PRIMITIVE_TYPES
public static final java.lang.String FILE_JAVA_PRIMITIVE_TYPES
- See Also:
- Constant Field Values
FILE_UML2_PRIMITIVE_TYPES
public static final java.lang.String FILE_UML2_PRIMITIVE_TYPES
- See Also:
- Constant Field Values
XmiUtil
public XmiUtil()
printEnumeration
public static void printEnumeration(xmitools.xmiparser.XmiNode node)
printModel
public static void printModel(xmitools.xmiparser.XmiModel model)
getXmiType
public static java.lang.String getXmiType(xmitools.xmiparser.XmiNode node)
getXmiId
public static java.lang.String getXmiId(xmitools.xmiparser.XmiNode node)
getTypeAttribute
public static java.lang.String getTypeAttribute(xmitools.xmiparser.XmiNode node)
getAttribute
public static java.lang.String getAttribute(xmitools.xmiparser.XmiNode node,
java.lang.String attr)
nodeAsString
public static java.lang.String nodeAsString(xmitools.xmiparser.XmiNode node)
getChildByXmiId
public static xmitools.xmiparser.XmiNode getChildByXmiId(xmitools.xmiparser.XmiNode node,
java.lang.String xmiId)
- Searches the first child with the given xmi:id. Return null if
none is found. The given node is not checked.
- Returns:
- the first child with the given xmi:id, or null xmiId is null
or none is found
printDomAttributes
protected static org.w3c.dom.NamedNodeMap printDomAttributes(org.w3c.dom.Element domElem)
isOfStereotype
public static boolean isOfStereotype(xmitools.xmiparser.XmiNode node,
java.lang.String profile,
java.lang.String stereotype)
throws java.lang.Exception
- Resembles UmlNode.getTag()
- Throws:
java.lang.Exception
isUmlPrimitiveType
public static boolean isUmlPrimitiveType(xmitools.xmiparser.XmiNode node)