BeanElement uses a Java Bean to store its attributes.
| Modifier and Type | Field and Description |
|---|---|
| private Object | bean
The JavaBean which defines my attributes |
| private static final DocumentFactory | DOCUMENT_FACTORY
Hides org. DocumentFactory instance used by default
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Element | addAttribute(String
is the name of the attribute whose value is to be added or
updated name, String is the attribute's value value)Overrides org. Implements org. |
| public Element | addAttribute(QName
is the fully qualified name of the attribute whose value is to
be added or updated qName, String is the attribute's value value)Overrides org. Implements org. |
| public BeanAttribute | attribute(String
DOCUMENT ME! name)Overrides org. Implements org. |
| public BeanAttribute | attribute(QName
is the fully qualified name qname)Overrides org. Implements org. |
| protected List | Returns: DOCUMENT ME!Overrides org. |
| protected List | createAttributeList(int
DOCUMENT ME! size)Overrides org. |
| protected BeanAttributeList | |
| public Object | Returns: the JavaBean associated with this elementOverrides org. Implements org. |
| protected DocumentFactory | |
| public void | setAttributes(List<Attribute>
DOCUMENT ME! attributes)Overrides org. Implements org. |
| public void | setAttributes(Attributes
DOCUMENT ME! attributes, NamespaceStack DOCUMENT ME! namespaceStack, boolean DOCUMENT ME! noNamespaceAttributes)Overrides org. org..
|
| public void | setData(Object
DOCUMENT ME! data)Overrides org. Implements org. setTextif it doesn't
|
| bean | back to summary |
|---|---|
| private Object bean The JavaBean which defines my attributes | |
| DOCUMENT_FACTORY | back to summary |
|---|---|
| private static final DocumentFactory DOCUMENT_FACTORY Hides org. The | |
| BeanElement | back to summary |
|---|---|
| public BeanElement(String name, Object bean) | |
| BeanElement | back to summary |
|---|---|
| public BeanElement(String name, Namespace namespace, Object bean) | |
| BeanElement | back to summary |
|---|---|
| public BeanElement(QName qname, Object bean) | |
| BeanElement | back to summary |
|---|---|
| public BeanElement(QName qname) | |
| addAttribute | back to summary |
|---|---|
| public Element addAttribute(String name, String value) Overrides org. Implements org. Doc from org. Adds the attribute value of the given local name. If an attribute already exists for the given name it will be replaced. Attributes with null values are silently ignored. If the value of the attribute is null then this method call will remove any attributes with the given name. | |
| addAttribute | back to summary |
|---|---|
| public Element addAttribute(QName qName, String value) Overrides org. Implements org. Doc from org. Adds the attribute value of the given fully qualified name. If an attribute already exists for the given name it will be replaced. Attributes with null values are silently ignored. If the value of the attribute is null then this method call will remove any attributes with the given name. | |
| attribute | back to summary |
|---|---|
| public BeanAttribute attribute(String name) Overrides org. Implements org. Doc from org. Returns the attribute with the given name
| |
| attribute | back to summary |
|---|---|
| public BeanAttribute attribute(QName qname) Overrides org. Implements org. Doc from org. DOCUMENT ME!
| |
| createAttributeList | back to summary |
|---|---|
| protected List Overrides org. A Factory Method pattern which lazily creates a List implementation used to store content | |
| createAttributeList | back to summary |
|---|---|
| protected List Overrides org. Doc from org. A Factory Method pattern which creates a List implementation used to store attributes | |
| getBeanAttributeList | back to summary |
|---|---|
| protected BeanAttributeList getBeanAttributeList() | |
| getData | back to summary |
|---|---|
| public Object getData() Overrides org. Implements org. DOCUMENT ME!
| |
| getDocumentFactory | back to summary |
|---|---|
| protected DocumentFactory getDocumentFactory() | |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(List<Attribute> attributes) Overrides org. Implements org. Doc from org. Sets the attributes that this element contains | |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(Attributes attributes, NamespaceStack namespaceStack, boolean noNamespaceAttributes) Overrides org. Doc from org. This method provides a more optimal way of setting all the attributes on
an Element particularly for use in
| |
| setData | back to summary |
|---|---|
| public void setData(Object data) Overrides org. Implements org. Doc from org. Sets the data value of this element if this element supports data binding
or calls
| |