public class MetaModel extends java.lang.Object implements java.lang.Iterable<MetaModelElement>
The class parses the metamodel definition file, manages the set of
MetaModelElement
instances that constitute the metamodel, and
provides access to them.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_ELEMENT
The name of the base element type.
|
static java.lang.String |
TL_ELEMENT
The name of the top level XML element in the metamodel definition file.
|
Constructor and Description |
---|
MetaModel() |
Modifier and Type | Method and Description |
---|---|
org.xml.sax.helpers.DefaultHandler |
getSAXParserHandler()
Gets a SAX handler to populate this metamodel with the contents of a
metamodel definition file.
|
MetaModelElement |
getType(java.lang.String typeName)
Retrieves a metamodel element by its type name.
|
java.util.Iterator<MetaModelElement> |
iterator()
Retrieves an iterator over the element types in this metamodel.
|
public static final java.lang.String TL_ELEMENT
public static final java.lang.String BASE_ELEMENT
public java.util.Iterator<MetaModelElement> iterator()
iterator
in interface java.lang.Iterable<MetaModelElement>
public org.xml.sax.helpers.DefaultHandler getSAXParserHandler()
public MetaModelElement getType(java.lang.String typeName)
typeName
- The type name of the metamodel element.null
if
there is no element of that name.