|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.xmi.impl.XMLInfoImpl
public class XMLInfoImpl
This class is used with the XMLMap class to describe how to serialize objects and features. You can specify the name to use instead of the model name, whether a feature will be serialized as an XML attribute, XML element, or XML content, and whether to use a namespace when serializing an object.
The XMLMap class maintains the association between XMLInfo objects and the ecore constructs they describe.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.lang.String |
targetNamespace
|
protected int |
xmlRepresentation
|
Fields inherited from interface org.eclipse.emf.ecore.xmi.XMLResource.XMLInfo |
---|
ATTRIBUTE, CONTENT, ELEMENT, UNSPECIFIED |
Constructor Summary | |
---|---|
XMLInfoImpl()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int xmlRepresentation
protected java.lang.String targetNamespace
protected java.lang.String name
Constructor Detail |
---|
public XMLInfoImpl()
Method Detail |
---|
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
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |