public interface XMLMetaData extends Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE |
static String |
defaultName
JAXB XML binding default name
|
static int |
ELEMENT |
static int |
XMLTYPE |
Modifier and Type | Method and Description |
---|---|
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
|
static final String defaultName
static final int XMLTYPE
static final int ELEMENT
static final int ATTRIBUTE
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)
void setXmltype(int type)
type
- XMLTYPE, ELEMENT, or ATTRIBUTEint getXmltype()
void setXmlRootElement(boolean isXmlRootElement)
void addField(String name, XMLMetaData field)
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.