|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used with the XMLMap interface 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 interface maintains the association between XMLInfo objects and the ecore constructs they describe.
Field Summary | |
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. |
Method Summary | |
String |
getName()
Returns the name to use for the Ecore construct in an XML file. |
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(String name)
Set the name to be used in an XML file. |
void |
setTargetNamespace(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. |
Field Detail |
public static final int UNSPECIFIED
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int CONTENT
Method Detail |
public int getXMLRepresentation()
public void setXMLRepresentation(int representation)
public void setTargetNamespace(String namespaceURI)
public String getTargetNamespace()
public String getName()
public void setName(String name)
|
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 |