public class ElementMapping extends Object
Constructor and Description |
---|
ElementMapping()
Base constructor
|
Modifier and Type | Method and Description |
---|---|
org.xml.sax.Attributes |
getAttributes()
Gets the element's attributes.
|
ElementDescriptor |
getDescriptor()
Gets the mapped element descriptor.
|
String |
getName()
Gets the local name if the parser is namespace aware, otherwise the name.
|
String |
getNamespace()
Gets the namespace URI or an empty string if the parser is not namespace aware
or the element has no namespace.
|
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(String name)
Sets the local name for this element.
|
void |
setNamespace(String namespace)
Sets the namespace URI for this element
|
void |
setType(Class type)
Sets the base type for this element.
|
String |
toString()
Returns something useful for logging.
|
public String getNamespace()
public void setNamespace(String namespace)
namespace
- the namespace uri, possibly nullpublic String getName()
public void setName(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 Class getType()
public void setType(Class type)
type
- the Class of the base type for this elementpublic ElementDescriptor getDescriptor()
public void setDescriptor(ElementDescriptor descriptor)
descriptor
- set this descriptorCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.