public class XMLInfoImpl extends java.lang.Object implements XMLResource.XMLInfo
The XMLMap class maintains the association between XMLInfo objects and the ecore constructs they describe.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.lang.String |
targetNamespace |
protected int |
xmlRepresentation |
ATTRIBUTE, CONTENT, ELEMENT, UNSPECIFIED
Constructor and Description |
---|
XMLInfoImpl() |
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.
|
protected int xmlRepresentation
protected java.lang.String targetNamespace
protected java.lang.String name
public int getXMLRepresentation()
getXMLRepresentation
in interface XMLResource.XMLInfo
public void setXMLRepresentation(int representation)
setXMLRepresentation
in interface XMLResource.XMLInfo
public java.lang.String getTargetNamespace()
XMLResource.XMLInfo
getTargetNamespace
in interface XMLResource.XMLInfo
public void setTargetNamespace(java.lang.String namespaceURI)
XMLResource.XMLInfo
setTargetNamespace
in interface XMLResource.XMLInfo
public java.lang.String getName()
getName
in interface XMLResource.XMLInfo
public void setName(java.lang.String name)
setName
in interface XMLResource.XMLInfo