|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLMetaData
Describe metadata about an xml type.
Field Summary | |
---|---|
static int |
ATTRIBUTE
|
static String |
defaultName
JAXB XML binding default name |
static int |
ELEMENT
|
static int |
XMLTYPE
|
Method Summary | |
---|---|
void |
addField(String name,
XMLMetaData field)
|
XMLMetaData |
getFieldMapping(String name)
Return XMLMapping for a given field. |
String |
getName()
Return the mapping name. |
Class |
getType()
Return type. |
int |
getTypeCode()
Return type code. |
String |
getXmlname()
Return xml element tag name or xml attribute name. |
String |
getXmlnamespace()
Return xml namespace. |
int |
getXmltype()
Return xmltype |
boolean |
isXmlAttribute()
Return true if mapping on an XmlAttribute. |
boolean |
isXmlElement()
Return true if mapping on an XmlElement. |
boolean |
isXmlRootElement()
Return true if mapping on an XmlRootElement. |
void |
setName(String name)
Set field name. |
void |
setType(Class type)
Set type. |
void |
setXmlname(String name)
Set xml element or attribute name. |
void |
setXmlnamespace(String namespace)
Set namespace. |
void |
setXmlRootElement(boolean isXmlRootElement)
|
void |
setXmltype(int type)
Set xmltype |
Field Detail |
---|
static final String defaultName
static final int XMLTYPE
static final int ELEMENT
static final int ATTRIBUTE
Method Detail |
---|
boolean isXmlRootElement()
boolean isXmlElement()
boolean isXmlAttribute()
XMLMetaData getFieldMapping(String name)
name
- the field name.
void setType(Class type)
Class getType()
int getTypeCode()
String getName()
String getXmlname()
String getXmlnamespace()
void setName(String name)
name
- the field name.void setXmlname(String name)
name
- the element name or attribute namevoid setXmlnamespace(String namespace)
namespace
- void setXmltype(int type)
type
- XMLTYPE, ELEMENT, or ATTRIBUTEint getXmltype()
void setXmlRootElement(boolean isXmlRootElement)
void addField(String name, XMLMetaData field)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |