Java Doc for SequentialListSegment.java in  » HTML-Parser » jericho-html » au » id » jericho » lib » html » nodoc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » HTML Parser » jericho html » au.id.jericho.lib.html.nodoc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   au.id.jericho.lib.html.Segment
      au.id.jericho.lib.html.nodoc.SequentialListSegment

All known Subclasses:   au.id.jericho.lib.html.Attributes,
SequentialListSegment
abstract public class SequentialListSegment extends Segment implements List(Code)
A base class used internally to simulate multiple inheritance of Segment and java.util.AbstractSequentialList.

It allows a Segment based class to implement java.util.List without having to implement all of the List methods explicitly, which would clutter the API documentation with mostly irrelevant methods. By extending this class, most of the list implementation methods are simply listed in the inherited methods list.
See Also:   Attributes




Constructor Summary
public  SequentialListSegment(Source source, int begin, int end)
    

Method Summary
public  booleanadd(Object o)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  voidadd(int index, Object element)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  booleanaddAll(Collection collection)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  booleanaddAll(int index, Collection collection)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  voidclear()
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  booleancontains(Object o)
     Indicates whether this list contains the specified object.
Parameters:
  o - object to be checked for containment in this list.
public  booleancontainsAll(Collection collection)
     Indicates whether this list contains all of the items in the specified collection.
Parameters:
  collection - the collection to be checked for containment in this list.
public  Objectget(int index)
     Returns the item at the specified position in this list.

This implementation first gets a list iterator pointing to the indexed item (with listIterator(index)). Then, it gets the element using ListIterator.next and returns it.
Parameters:
  index - the index of the item to return.

abstract public  intgetCount()
     Returns the number of items in the list.
public  intindexOf(Object o)
     Returns the index in this list of the first occurence of the specified object, or -1 if the list does not contain this object.
Parameters:
  o - object to search for.
public  booleanisEmpty()
     Indicates whether this list is empty.
public  Iteratoriterator()
     Returns an iterator over the items in the list in proper sequence.
public  intlastIndexOf(Object o)
     Returns the index in this list of the last occurence of the specified object, or -1 if the list does not contain this object.
Parameters:
  o - object to search for.
abstract public  ListIteratorlistIterator(int index)
     Returns a list iterator of the items in this list (in proper sequence), starting at the specified position in the list.

The specified index indicates the first item that would be returned by an initial call to the next() method. An initial call to the previous() method would return the item with the specified index minus one.
Parameters:
  index - index of the first item to be returned from the list iterator (by a call to the next() method).

public  ListIteratorlistIterator()
     Returns a list iterator of the items in this list (in proper sequence), starting with the first item in the list.
public  booleanremove(Object o)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  Objectremove(int index)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  booleanremoveAll(Collection collection)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  booleanretainAll(Collection collection)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  Objectset(int index, Object element)
     This list is unmodifiable, so this method always throws an UnsupportedOperationException.
public  intsize()
     Returns the number of items in the list.
public  ListsubList(int fromIndex, int toIndex)
     Returns a view of the portion of this list between fromIndex, inclusive, and toIndex, exclusive. (If fromIndex and toIndex are equal, the returned list is empty.) The returned list is backed by this list, so changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list.
Parameters:
  fromIndex - low endpoint (inclusive) of the subList.
Parameters:
  toIndex - high endpoint (exclusive) of the subList.
public  Object[]toArray()
     Returns an array containing all of the items in this list.
public  Object[]toArray(Object a)
     Returns an array containing all of the items in this list in the correct order; the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list.

If the list fits in the specified array with room to spare (i.e., the array has more elements than the list), the item in the array immediately following the end of the collection is set to null. This is useful in determining the length of the list only if the caller knows that the list does not contain any null items.



Constructor Detail
SequentialListSegment
public SequentialListSegment(Source source, int begin, int end)(Code)




Method Detail
add
public boolean add(Object o)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



add
public void add(int index, Object element)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



addAll
public boolean addAll(Collection collection)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



addAll
public boolean addAll(int index, Collection collection)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



clear
public void clear()(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



contains
public boolean contains(Object o)(Code)
Indicates whether this list contains the specified object.
Parameters:
  o - object to be checked for containment in this list. true if this list contains the specified object, otherwise false.



containsAll
public boolean containsAll(Collection collection)(Code)
Indicates whether this list contains all of the items in the specified collection.
Parameters:
  collection - the collection to be checked for containment in this list. true if this list contains all of the items in the specified collection, otherwise false.
throws:
  NullPointerException - if the specified collection is null.
See Also:   SequentialListSegment.contains(Object)



get
public Object get(int index)(Code)
Returns the item at the specified position in this list.

This implementation first gets a list iterator pointing to the indexed item (with listIterator(index)). Then, it gets the element using ListIterator.next and returns it.
Parameters:
  index - the index of the item to return. the item at the specified position in this list.
throws:
  IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index >= size()).




getCount
abstract public int getCount()(Code)
Returns the number of items in the list. the number of items in the list.



indexOf
public int indexOf(Object o)(Code)
Returns the index in this list of the first occurence of the specified object, or -1 if the list does not contain this object.
Parameters:
  o - object to search for. the index in this list of the first occurence of the specified object, or -1 if the list does not contain this object.



isEmpty
public boolean isEmpty()(Code)
Indicates whether this list is empty. true if there are no items in the list, otherwise false.



iterator
public Iterator iterator()(Code)
Returns an iterator over the items in the list in proper sequence. an iterator over the items in the list in proper sequence.



lastIndexOf
public int lastIndexOf(Object o)(Code)
Returns the index in this list of the last occurence of the specified object, or -1 if the list does not contain this object.
Parameters:
  o - object to search for. the index in this list of the last occurence of the specified object, or -1 if the list does not contain this object.



listIterator
abstract public ListIterator listIterator(int index)(Code)
Returns a list iterator of the items in this list (in proper sequence), starting at the specified position in the list.

The specified index indicates the first item that would be returned by an initial call to the next() method. An initial call to the previous() method would return the item with the specified index minus one.
Parameters:
  index - index of the first item to be returned from the list iterator (by a call to the next() method). a list iterator of the items in this list (in proper sequence), starting at the specified position in the list.
throws:
  IndexOutOfBoundsException - if the specified index is out of range (index < 0 || index > size()).




listIterator
public ListIterator listIterator()(Code)
Returns a list iterator of the items in this list (in proper sequence), starting with the first item in the list. a list iterator of the items in this list (in proper sequence), starting with the first item in the list.
See Also:   SequentialListSegment.listIterator(int)



remove
public boolean remove(Object o)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



remove
public Object remove(int index)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



removeAll
public boolean removeAll(Collection collection)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



retainAll
public boolean retainAll(Collection collection)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



set
public Object set(int index, Object element)(Code)
This list is unmodifiable, so this method always throws an UnsupportedOperationException.
throws:
  UnsupportedOperationException -



size
public int size()(Code)
Returns the number of items in the list.

This is equivalent to SequentialListSegment.getCount() , and is necessary to for the implementation of the java.util.Collection interface. the number of items in the list.




subList
public List subList(int fromIndex, int toIndex)(Code)
Returns a view of the portion of this list between fromIndex, inclusive, and toIndex, exclusive. (If fromIndex and toIndex are equal, the returned list is empty.) The returned list is backed by this list, so changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list.
Parameters:
  fromIndex - low endpoint (inclusive) of the subList.
Parameters:
  toIndex - high endpoint (exclusive) of the subList. a view of the specified range within this list.
throws:
  IndexOutOfBoundsException - endpoint index value out of range (fromIndex < 0 || toIndex > size)
throws:
  IllegalArgumentException - endpoint indices out of order (fromIndex > toIndex)
See Also:   java.util.List.subList(int fromIndexint toIndex)



toArray
public Object[] toArray()(Code)
Returns an array containing all of the items in this list. an array containing all of the items in this list.



toArray
public Object[] toArray(Object a)(Code)
Returns an array containing all of the items in this list in the correct order; the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list.

If the list fits in the specified array with room to spare (i.e., the array has more elements than the list), the item in the array immediately following the end of the collection is set to null. This is useful in determining the length of the list only if the caller knows that the list does not contain any null items.
Parameters:
  a - the array into which the items of the list are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose. an array containing the items of the list.
throws:
  NullPointerException - if the specified array is null.
throws:
  ArrayStoreException - if the runtime type of the specified array is not a supertype of the runtime type of every item in this list.




Methods inherited from au.id.jericho.lib.html.Segment
final public char charAt(int index)(Code)(Java Doc)
public int compareTo(Object o)(Code)(Java Doc)
final public boolean encloses(Segment segment)(Code)(Java Doc)
final public boolean encloses(int pos)(Code)(Java Doc)
final public boolean equals(Object object)(Code)(Java Doc)
public String extractText()(Code)(Java Doc)
public String extractText(boolean includeAttributes)(Code)(Java Doc)
public List findAllCharacterReferences()(Code)(Java Doc)
public List findAllElements()(Code)(Java Doc)
public List findAllElements(String name)(Code)(Java Doc)
public List findAllElements(StartTagType startTagType)(Code)(Java Doc)
public List findAllElements(String attributeName, String value, boolean valueCaseSensitive)(Code)(Java Doc)
public List findAllStartTags()(Code)(Java Doc)
public List findAllStartTags(String name)(Code)(Java Doc)
public List findAllStartTags(String attributeName, String value, boolean valueCaseSensitive)(Code)(Java Doc)
public List findAllTags()(Code)(Java Doc)
public List findAllTags(TagType tagType)(Code)(Java Doc)
public List findFormControls()(Code)(Java Doc)
public FormFields findFormFields()(Code)(Java Doc)
final public int getBegin()(Code)(Java Doc)
public List getChildElements()(Code)(Java Doc)
public String getDebugInfo()(Code)(Java Doc)
final public int getEnd()(Code)(Java Doc)
public Renderer getRenderer()(Code)(Java Doc)
public TextExtractor getTextExtractor()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void ignoreWhenParsing()(Code)(Java Doc)
final public boolean isWhiteSpace()(Code)(Java Doc)
final public static boolean isWhiteSpace(char ch)(Code)(Java Doc)
final public int length()(Code)(Java Doc)
public Attributes parseAttributes()(Code)(Java Doc)
final public CharSequence subSequence(int beginIndex, int endIndex)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.