public static interface XMLResource.XMLInfo
The XMLMap interface maintains the association between XMLInfo objects and the ecore constructs they describe.
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE |
static int |
CONTENT |
static int |
ELEMENT |
static int |
UNSPECIFIED
These constants are used to specify the XML representation
of an Ecore construct.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name to use for the Ecore construct in an
XML file.
|
java.lang.String |
getTargetNamespace()
Gets the target namespace for the Ecore construct.
|
int |
getXMLRepresentation()
Returns ELEMENT if the Ecore construct is to be serialized
as an XML element; ATTRIBUTE if the Ecore construct is
to be serialized as an XML attribute; and CONTENT if the
Ecore construct is to be serialized in element content.
|
void |
setName(java.lang.String name)
Set the name to be used in an XML file.
|
void |
setTargetNamespace(java.lang.String namespaceURI)
Set the target namespace for the Ecore construct.
|
void |
setXMLRepresentation(int representation)
Set attribute to true to serialize a feature as an
XML attribute.
|
static final int UNSPECIFIED
static final int ELEMENT
static final int ATTRIBUTE
static final int CONTENT
int getXMLRepresentation()
void setXMLRepresentation(int representation)
void setTargetNamespace(java.lang.String namespaceURI)
java.lang.String getTargetNamespace()
java.lang.String getName()
void setName(java.lang.String name)