Java Doc for Series.java in  » Web-Services » restlet-1.0.8 » org » restlet » util » 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 » Web Services » restlet 1.0.8 » org.restlet.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.restlet.util.Series

Series
abstract public class Series extends WrapperList (Code)
Modifiable list of entries with many helper methods. Note that this class uses the Parameter class as the template type. This allows you to use an instance of this class as any other java.util.List, in particular all the helper methods in java.util.Collections.
author:
   Jerome Louvel (contact@noelios.com)
See Also:   org.restlet.data.Parameter
See Also:   java.util.Collections
See Also:   java.util.List


Field Summary
final public static  ObjectEMPTY_VALUE
     A marker for empty values to differentiate from non existing values (null).

Constructor Summary
public  Series()
     Constructor.
public  Series(int initialCapacity)
     Constructor.
public  Series(List<E> delegate)
     Constructor.

Method Summary
public  booleanadd(String name, String value)
     Creates then adds a parameter at the end of the list.
Parameters:
  name - The parameter name.
Parameters:
  value - The parameter value.
public  voidcopyTo(Map<String, Object> params)
     Copies the parameters whose name is a key in the given map.
If a matching parameter is found, its value is put in the map.
If multiple values are found, a list is created and set in the map.
abstract public  EcreateEntry(String name, String value)
     Creates a new entry.
Parameters:
  name - The name of the entry.
Parameters:
  value - The value of the entry.
abstract public  Series<E>createSeries(List<E> delegate)
     Creates a new series.
Parameters:
  delegate - Optional delegate series.
public  EgetFirst(String name)
     Returns the first parameter found with the given name.
Parameters:
  name - The parameter name (case sensitive).
public  EgetFirst(String name, boolean ignoreCase)
     Returns the first parameter found with the given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive.
public  StringgetFirstValue(String name)
     Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name (case sensitive).
public  StringgetFirstValue(String name, boolean ignoreCase)
     Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive.
public  StringgetFirstValue(String name, boolean ignoreCase, String defaultValue)
     Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive.
Parameters:
  defaultValue - The default value to return if no matching parameter found.
public  StringgetFirstValue(String name, String defaultValue)
     Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name (case sensitive).
Parameters:
  defaultValue - The default value to return if no matching parameter found.
public  Set<String>getNames()
     Returns the set of parameter names (case sensitive).
public  StringgetValues(String name)
     Returns the values of the parameters with a given name.
public  StringgetValues(String name, String separator, boolean ignoreCase)
     Returns the parameter values with a given name.
public  booleanremoveAll(String name)
     Removes all the parameters with a given name.
Parameters:
  name - The parameter name (case sensitive).
public  booleanremoveAll(String name, boolean ignoreCase)
     Removes all the parameters with a given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive.
public  booleanremoveFirst(String name)
     Removes from this list the first entry whose name equals the specified name ignoring the case.
Parameters:
  name - The name of the entries to be removed (case sensitive).
public  booleanremoveFirst(String name, boolean ignoreCase)
     Removes from this list the first entry whose name equals the specified name ignoring the case or not.
Parameters:
  name - The name of the entries to be removed.
Parameters:
  ignoreCase - true if the comparison ignores the case, false otherwise.
public  Eset(String name, String value, boolean ignoreCase)
     Replaces the value of the first parameter with the given name and removes all other parameters with the same name.
Parameters:
  name - The parameter name.
Parameters:
  value - The value to set.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive.
public  Series<E>subList(int fromIndex, int toIndex)
     Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
Parameters:
  fromIndex - The start position.
Parameters:
  toIndex - The end position (exclusive).
public  Series<E>subList(String name)
     Returns a list of all the values associated to the parameter name.
Parameters:
  name - The parameter name (case sensitive).
public  Series<E>subList(String name, boolean ignoreCase)
     Returns a list of all the values associated to the parameter name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive.

Field Detail
EMPTY_VALUE
final public static Object EMPTY_VALUE(Code)
A marker for empty values to differentiate from non existing values (null).




Constructor Detail
Series
public Series()(Code)
Constructor.



Series
public Series(int initialCapacity)(Code)
Constructor.
Parameters:
  initialCapacity - The initial list capacity.



Series
public Series(List<E> delegate)(Code)
Constructor.
Parameters:
  delegate - The delegate list.




Method Detail
add
public boolean add(String name, String value)(Code)
Creates then adds a parameter at the end of the list.
Parameters:
  name - The parameter name.
Parameters:
  value - The parameter value. True (as per the general contract of the Collection.add method).



copyTo
public void copyTo(Map<String, Object> params)(Code)
Copies the parameters whose name is a key in the given map.
If a matching parameter is found, its value is put in the map.
If multiple values are found, a list is created and set in the map.
Parameters:
  params - The map controlling the copy.



createEntry
abstract public E createEntry(String name, String value)(Code)
Creates a new entry.
Parameters:
  name - The name of the entry.
Parameters:
  value - The value of the entry. A new entry.



createSeries
abstract public Series<E> createSeries(List<E> delegate)(Code)
Creates a new series.
Parameters:
  delegate - Optional delegate series. A new series.



getFirst
public E getFirst(String name)(Code)
Returns the first parameter found with the given name.
Parameters:
  name - The parameter name (case sensitive). The first parameter found with the given name.



getFirst
public E getFirst(String name, boolean ignoreCase)(Code)
Returns the first parameter found with the given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive. The first parameter found with the given name.



getFirstValue
public String getFirstValue(String name)(Code)
Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name (case sensitive). The value of the first parameter found with the given name.



getFirstValue
public String getFirstValue(String name, boolean ignoreCase)(Code)
Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive. The value of the first parameter found with the given name.



getFirstValue
public String getFirstValue(String name, boolean ignoreCase, String defaultValue)(Code)
Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive.
Parameters:
  defaultValue - The default value to return if no matching parameter found. The value of the first parameter found with the given name or thedefault value.



getFirstValue
public String getFirstValue(String name, String defaultValue)(Code)
Returns the value of the first parameter found with the given name.
Parameters:
  name - The parameter name (case sensitive).
Parameters:
  defaultValue - The default value to return if no matching parameter found. The value of the first parameter found with the given name or thedefault value.



getNames
public Set<String> getNames()(Code)
Returns the set of parameter names (case sensitive). The set of parameter names.



getValues
public String getValues(String name)(Code)
Returns the values of the parameters with a given name. If multiple parameters with the same name are found, all values are concatenated and separated by a comma (like for HTTP message headers).
Parameters:
  name - The parameter name (case insensitive). The values of the parameters with a given name.



getValues
public String getValues(String name, String separator, boolean ignoreCase)(Code)
Returns the parameter values with a given name. If multiple parameters with the same name are found, all values are concatenated and separated by the given separator.
Parameters:
  name - The parameter name.
Parameters:
  separator - The separator character.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive. The sequence of values.



removeAll
public boolean removeAll(String name)(Code)
Removes all the parameters with a given name.
Parameters:
  name - The parameter name (case sensitive). True if the list changed.



removeAll
public boolean removeAll(String name, boolean ignoreCase)(Code)
Removes all the parameters with a given name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive. True if the list changed.



removeFirst
public boolean removeFirst(String name)(Code)
Removes from this list the first entry whose name equals the specified name ignoring the case.
Parameters:
  name - The name of the entries to be removed (case sensitive). false if no entry has been removed, true otherwise.



removeFirst
public boolean removeFirst(String name, boolean ignoreCase)(Code)
Removes from this list the first entry whose name equals the specified name ignoring the case or not.
Parameters:
  name - The name of the entries to be removed.
Parameters:
  ignoreCase - true if the comparison ignores the case, false otherwise. false if no entry has been removed, true otherwise.



set
public E set(String name, String value, boolean ignoreCase)(Code)
Replaces the value of the first parameter with the given name and removes all other parameters with the same name.
Parameters:
  name - The parameter name.
Parameters:
  value - The value to set.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive. The parameter set or added.



subList
public Series<E> subList(int fromIndex, int toIndex)(Code)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
Parameters:
  fromIndex - The start position.
Parameters:
  toIndex - The end position (exclusive). The sub-list.



subList
public Series<E> subList(String name)(Code)
Returns a list of all the values associated to the parameter name.
Parameters:
  name - The parameter name (case sensitive). The list of values.



subList
public Series<E> subList(String name, boolean ignoreCase)(Code)
Returns a list of all the values associated to the parameter name.
Parameters:
  name - The parameter name.
Parameters:
  ignoreCase - Indicates if the name comparison is case sensitive. The list of values.



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