|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.io.read.ElementMapping
public class ElementMapping
Describes a mapping between an xml element and a betwixt element.
Constructor Summary | |
---|---|
ElementMapping()
Base constructor |
Method Summary | |
---|---|
org.xml.sax.Attributes |
getAttributes()
Gets the element's attributes. |
ElementDescriptor |
getDescriptor()
Gets the mapped element descriptor. |
java.lang.String |
getName()
Gets the local name if the parser is namespace aware, otherwise the name. |
java.lang.String |
getNamespace()
Gets the namespace URI or an empty string if the parser is not namespace aware or the element has no namespace. |
java.lang.Class |
getType()
Gets the base type for this element. |
void |
setAttributes(org.xml.sax.Attributes attributes)
Sets the element's attributes |
void |
setDescriptor(ElementDescriptor descriptor)
Sets the mapped element descriptor. |
void |
setName(java.lang.String name)
Sets the local name for this element. |
void |
setNamespace(java.lang.String namespace)
Sets the namespace URI for this element |
void |
setType(java.lang.Class type)
Sets the base type for this element. |
java.lang.String |
toString()
Returns something useful for logging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ElementMapping()
Method Detail |
---|
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- the namespace uri, possibly nullpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the element name, possibly nullpublic org.xml.sax.Attributes getAttributes()
public void setAttributes(org.xml.sax.Attributes attributes)
attributes
- the element's attributes, possibly nullpublic java.lang.Class getType()
public void setType(java.lang.Class type)
type
- the Class of the base type for this elementpublic ElementDescriptor getDescriptor()
public void setDescriptor(ElementDescriptor descriptor)
descriptor
- set this descriptorpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |