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.XMLInfopublic void setXMLRepresentation(int representation)
setXMLRepresentation in interface XMLResource.XMLInfopublic java.lang.String getTargetNamespace()
XMLResource.XMLInfogetTargetNamespace in interface XMLResource.XMLInfopublic void setTargetNamespace(java.lang.String namespaceURI)
XMLResource.XMLInfosetTargetNamespace in interface XMLResource.XMLInfopublic java.lang.String getName()
getName in interface XMLResource.XMLInfopublic void setName(java.lang.String name)
setName in interface XMLResource.XMLInfoCopyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature