|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xlattice.corexml.om.AttrList
public class AttrList
A container for attributes. The order of attributes in the container is not significant and is not guaranteed to be repeatable.
| Constructor Summary | |
|---|---|
AttrList()
Create a container with a default size of 8. |
|
AttrList(Attr attr)
Create the container that will hold one attribute, initializing it to that size. |
|
AttrList(int sizeHint)
Create the container, specifying a size. |
|
| Method Summary | |
|---|---|
AttrList |
add(Attr attr)
Add an attribute to an existing container. |
Attr |
get(int n)
Get the Nth attribute. |
Holder |
getHolder()
|
AttrList |
insert(int n,
Attr attr)
Insert an attribute into an existing container in a particular place, displacing any existing attributes if necessary. |
void |
setHolder(Element h)
Set the Holder for this attribute. |
int |
size()
|
java.lang.String |
toXml()
|
void |
walkAll(Visitor v)
Walk a Visitor through the list of attributes, visiting each in turn. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AttrList(int sizeHint)
sizeHint - preferred sizeAttrList(Attr attr)
attr - the attribute heldAttrList()
| Method Detail |
|---|
public AttrList add(Attr attr)
attr - the attribute to be inserted
java.lang.NullPointerException - if the Attr argument is null
public AttrList insert(int n,
Attr attr)
n - zero-based index at which the Attr is to be insertedattr - the attribute to be inserted
java.lang.IndexOutOfBoundsException - if n is negative or out of range
java.lang.NullPointerException - if the Attr argument is nullpublic Attr get(int n)
n - index of the Attr to be returned
java.lang.IndexOutOfBoundsExceptionpublic int size()
public Holder getHolder()
public void setHolder(Element h)
h - the Holder being assignedpublic void walkAll(Visitor v)
v - the visitorpublic java.lang.String toXml()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||