Classes | |
| class | Attribute |
Public Member Functions | |
| AttributeSetImpl () | |
| AttributeSetImpl (int size) | |
| void | clear () |
| int | getIndex (String name, String namespace) |
| String | getName (int index) |
| String | getNamespace (int index) |
| int | getSize () |
| String | getValue (int index) |
| String | getValue (String name) |
| String | getValue (String name, String namespace) |
| void | setAttribute (String name, String value) |
| void | setAttribute (String name, String value, String namespace) |
Static Public Attributes | |
| static final String | XMLNS = "xmlns" |
The default implementation of AttributeSet used by the Marshalling Framework.
| org.exolab.castor.xml.util.AttributeSetImpl.AttributeSetImpl | ( | ) |
Creates a new AttributeSetImpl
| org.exolab.castor.xml.util.AttributeSetImpl.AttributeSetImpl | ( | int | size | ) |
Creates a new AttributeSetImpl
| size | the default size for this AttributeSetImpl |
| void org.exolab.castor.xml.util.AttributeSetImpl.clear | ( | ) |
Removes all Attributes in this AttributeSetImpl
References org.exolab.castor.util.List.clear().
Referenced by org.exolab.castor.xml.UnmarshalHandler.startElement().
| int org.exolab.castor.xml.util.AttributeSetImpl.getIndex | ( | String | name, | |
| String | namespace | |||
| ) |
Returns the index of the attribute associated with the given name and namespace.
| name | the name of the attribute whose value should be returned. | |
| namespace | the namespace of the attribute |
Implements org.exolab.castor.xml.AttributeSet.
References org.exolab.castor.util.List.get(), org.exolab.castor.xml.util.AttributeSetImpl.Attribute.name, and org.exolab.castor.util.List.size().
| String org.exolab.castor.xml.util.AttributeSetImpl.getName | ( | int | index | ) |
Returns the name of the attribute located at the given index.
| index | the index of the attribute whose name should be returned. |
Implements org.exolab.castor.xml.AttributeSet.
References org.exolab.castor.util.List.get(), and org.exolab.castor.xml.util.AttributeSetImpl.Attribute.name.
| String org.exolab.castor.xml.util.AttributeSetImpl.getNamespace | ( | int | index | ) |
Returns the namespace of the attribute located at the given index.
Implements org.exolab.castor.xml.AttributeSet.
References org.exolab.castor.util.List.get().
| int org.exolab.castor.xml.util.AttributeSetImpl.getSize | ( | ) |
Returns the number of Attributes within this AttributeSet.
Implements org.exolab.castor.xml.AttributeSet.
References org.exolab.castor.util.List.size().
| String org.exolab.castor.xml.util.AttributeSetImpl.getValue | ( | String | name | ) |
Returns the value of the attribute associated with the given name. This method is equivalent to call getValue(name, null);
| name | the name of the attribute whose value should be returned. |
Implements org.exolab.castor.xml.AttributeSet.
References org.exolab.castor.xml.util.AttributeSetImpl.Attribute.value.
| String org.exolab.castor.xml.util.AttributeSetImpl.getValue | ( | String | name, | |
| String | namespace | |||
| ) |
Returns the value of the attribute associated with the given name. This method is equivalent to call getValue(name, null);
| name | the name of the attribute whose value should be returned. | |
| namespace | the namespace of the attribute |
Implements org.exolab.castor.xml.AttributeSet.
References org.exolab.castor.xml.util.AttributeSetImpl.Attribute.value.
| String org.exolab.castor.xml.util.AttributeSetImpl.getValue | ( | int | index | ) |
Returns the value of the attribute located at the given index within this AttributeSet.
| index | the index of the attribute whose value should be returned. |
Implements org.exolab.castor.xml.AttributeSet.
References org.exolab.castor.util.List.get(), and org.exolab.castor.xml.util.AttributeSetImpl.Attribute.value.
| void org.exolab.castor.xml.util.AttributeSetImpl.setAttribute | ( | String | name, | |
| String | value | |||
| ) |
Adds or replaces the attribute with the given name. No namespace is associated with the attribute.
| name | the name of the attribute | |
| value | the attribute value. |
Referenced by org.exolab.castor.xml.Marshaller.setNoNamespaceSchemaLocation(), org.exolab.castor.xml.Marshaller.setSchemaLocation(), and org.exolab.castor.xml.UnmarshalHandler.startElement().
| void org.exolab.castor.xml.util.AttributeSetImpl.setAttribute | ( | String | name, | |
| String | value, | |||
| String | namespace | |||
| ) |
Adds or replaces the attribute with the given name. No namespace is associated with the attribute.
| name | the name of the attribute | |
| value | the attribute value. |
References org.exolab.castor.util.List.add(), org.exolab.castor.xml.util.AttributeSetImpl.Attribute.value, and org.exolab.castor.xml.util.AttributeSetImpl.XMLNS.
final String org.exolab.castor.xml.util.AttributeSetImpl.XMLNS = "xmlns" [static] |
The XML namespace declaration prefix. It is an error for an attribute name to be equal to this value.
Referenced by org.exolab.castor.xml.util.AttributeSetImpl.setAttribute().
1.7.0