Classes | Public Member Functions | Static Public Attributes

org.exolab.castor.xml.util.AttributeSetImpl Class Reference

Inheritance diagram for org.exolab.castor.xml.util.AttributeSetImpl:
org.exolab.castor.xml.AttributeSet

List of all members.

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"

Detailed Description

The default implementation of AttributeSet used by the Marshalling Framework.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:47

Constructor & Destructor Documentation

org.exolab.castor.xml.util.AttributeSetImpl.AttributeSetImpl (  ) 

Creates a new AttributeSetImpl

org.exolab.castor.xml.util.AttributeSetImpl.AttributeSetImpl ( int  size  ) 

Creates a new AttributeSetImpl

Parameters:
size the default size for this AttributeSetImpl

Member Function Documentation

void org.exolab.castor.xml.util.AttributeSetImpl.clear (  ) 
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.

Parameters:
name the name of the attribute whose value should be returned.
namespace the namespace of the attribute
Returns:
the index of the attribute, or -1 if not found.

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.

Parameters:
index the index of the attribute whose name should be returned.
Returns:
the name of the attribute located at the given index.

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.

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.

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);

Parameters:
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);

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.


Member Data Documentation

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties