|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface XMLResource.XMLInfo
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 | |
---|---|
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. |
Field Detail |
---|
static final int UNSPECIFIED
static final int ELEMENT
static final int ATTRIBUTE
static final int CONTENT
Method Detail |
---|
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)
|
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 |