|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.meta.XMLFieldMetaData
public class XMLFieldMetaData
Contains metadata about an xml element or attribute
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.meta.XMLMetaData |
---|
ATTRIBUTE, defaultName, ELEMENT, XMLTYPE |
Constructor Summary | |
---|---|
XMLFieldMetaData()
|
|
XMLFieldMetaData(Class type,
String name)
|
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 |
setTypeCode(int code)
|
void |
setXmlname(String name)
Set xml element or attribute name. |
void |
setXmlnamespace(String name)
Set namespace. |
void |
setXmlRootElement(boolean isXmlRootElement)
|
void |
setXmltype(int type)
Set xmltype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLFieldMetaData()
public XMLFieldMetaData(Class type, String name)
Method Detail |
---|
public Class getType()
XMLMetaData
getType
in interface XMLMetaData
public void setType(Class type)
XMLMetaData
setType
in interface XMLMetaData
public int getTypeCode()
XMLMetaData
getTypeCode
in interface XMLMetaData
public void setTypeCode(int code)
public void setName(String name)
XMLMetaData
setName
in interface XMLMetaData
name
- the field name.public String getName()
XMLMetaData
getName
in interface XMLMetaData
public void setXmlname(String name)
XMLMetaData
setXmlname
in interface XMLMetaData
name
- the element name or attribute namepublic String getXmlname()
XMLMetaData
getXmlname
in interface XMLMetaData
public void setXmlnamespace(String name)
XMLMetaData
setXmlnamespace
in interface XMLMetaData
public String getXmlnamespace()
XMLMetaData
getXmlnamespace
in interface XMLMetaData
public void setXmltype(int type)
XMLMetaData
setXmltype
in interface XMLMetaData
type
- XMLTYPE, ELEMENT, or ATTRIBUTEpublic int getXmltype()
XMLMetaData
getXmltype
in interface XMLMetaData
public boolean isXmlRootElement()
XMLMetaData
isXmlRootElement
in interface XMLMetaData
public boolean isXmlElement()
XMLMetaData
isXmlElement
in interface XMLMetaData
public boolean isXmlAttribute()
XMLMetaData
isXmlAttribute
in interface XMLMetaData
public XMLMetaData getFieldMapping(String name)
XMLMetaData
getFieldMapping
in interface XMLMetaData
name
- the field name.
public void setXmlRootElement(boolean isXmlRootElement)
setXmlRootElement
in interface XMLMetaData
public void addField(String name, XMLMetaData field)
addField
in interface XMLMetaData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |