|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.wrapper.collection.JxFileList
A list of JxFile wrappers.
| Constructor Summary | |
JxFileList()
Creates a new, empty list object. |
|
JxFileList(org.w3c.dom.Element[] elems)
Creates a new list containing DOM elements of an array. |
|
JxFileList(JxFileList list)
Creates a new list from a July 27list of JxFile wrappers. |
|
| Method Summary | |
boolean |
add(int index,
JxFile jf)
Inserts a wrapper at a position in this list. |
boolean |
add(JxFile jf)
Appends a wrapper to the end of this list. |
void |
addAll(JxFileList list)
Appends all wrappers in a list to the end of this list. |
boolean |
addFirst(JxFile jf)
Inserts a wrapper at the beginning of this list. |
boolean |
addLast(JxFile jf)
Appends a wrapper to the end of this list. |
void |
clear()
Removes all wrappers from this list. |
boolean |
contains(JxFile jf)
Tests if this list contains a wrapper. |
boolean |
containsAll(JxFileList list)
Tests if this list contains all wrappers of a list. |
JxFile |
get(int index)
Returns a wrapper at the position in this list. |
JxFile |
getFirst()
Returns the first wrapper in this list. |
java.lang.String |
getInfo()
Obtains information about this list. |
JxFile |
getJxFile(JxFile jf)
Returns a wrapper in this list that indicates the same DOM element of a wrapper. |
JxFile |
getJxFile(java.lang.String pathname)
Returns a wrapper with a path name in this list. |
JxFile |
getLast()
Returns the last wrapper in this list. |
boolean |
isEmpty()
Tests if this list contains no wrapper. |
java.util.Iterator |
iterator()
Returns an iterator of this list in proper sequence. |
void |
print()
Displays information about this list. |
JxFile |
remove(int index)
Removes a wrapper at a position in this list. |
boolean |
remove(JxFile jf)
Removes a wrapper from this list. |
void |
removeAll(JxFileList list)
Removes all wrappers in a list from this list. |
JxFile |
removeFirst()
Removes the first wrapper from this list. |
JxFile |
removeLast()
Removes the last wrapper from this list. |
boolean |
retainAll(JxFileList list)
Retains only wrappers in this list that are contained in a specified list. |
int |
size()
Returns the number of wrappers in this list. |
JxFile[] |
toArray()
Returns an array containing all wrappers in this list in proper sequence. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JxFileList()
public JxFileList(JxFileList list)
JxFile wrappers.
list - A list of wrappers.
public JxFileList(org.w3c.dom.Element[] elems)
throws JxWrapperException
elems - An array of DOM elements.
JxWrapperException - if the array contains elements other than the | Method Detail |
public void clear()
public boolean add(JxFile jf)
jf - A wrapper to be appended.
true if this list changed as a result of the call.
public boolean add(int index,
JxFile jf)
index - A position where a wrapper is inserted.jf - A wrapper to be inserted.
true if this list changed as a result of the call.public void addAll(JxFileList list)
list - A list of wrappes to be appended.public boolean remove(JxFile jf)
jf - A wrapper to be removed.
true if this list changed as a result of the call.public void removeAll(JxFileList list)
list - A list of wrappers to be removed.public JxFile remove(int index)
index - A position where a wrapper is removed.
null if there is no removed wrapper.public boolean retainAll(JxFileList list)
list - A list of wrappers to be retained.
true if this list changed as a result of the call.public boolean contains(JxFile jf)
jf - A wrapper to be tested.
true if the wrapper is present, otherwise false.public boolean containsAll(JxFileList list)
list - A list of wrappers to be tested.
true if this list contains all of the wrappers of the list, otherwise false.public JxFile get(int index)
index - The position where a wrapper is obtained.
null if there is no wrapper found.public JxFile getFirst()
public JxFile getLast()
public boolean addFirst(JxFile jf)
jf - A wrapper to be inserted.
true if this list changed as a result of the call.public boolean addLast(JxFile jf)
jf - A wrapper to be append.
true if this list changed as a result of the call.public JxFile removeFirst()
null if no wrapper was removed.public JxFile removeLast()
null if no element was removed.public boolean isEmpty()
true if this list contains no wrapper, otherwise false.public int size()
public java.util.Iterator iterator()
public JxFile getJxFile(JxFile jf)
jf - A wrapper to be retrived.
null if there is no wrapper matched.public JxFile getJxFile(java.lang.String pathname)
pathname - The path name of a file to be retrived.
null if there is no wrapper matched.public JxFile[] toArray()
public void print()
public java.lang.String getInfo()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||