Java Doc for TupleSet.java in  » Database-Client » prefuse » prefuse » data » tuple » 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 » Database Client » prefuse » prefuse.data.tuple 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


prefuse.data.tuple.TupleSet

All known Subclasses:   prefuse.data.tuple.AbstractTupleSet,
TupleSet
public interface TupleSet (Code)
A collection of data tuples. This is the top level interface for all data collections in the prefuse framework.
author:
   jeffrey heer
See Also:   prefuse.data.Tuple


Field Summary
final public static  Tuple[]EMPTY_ARRAY
     An empty, zero-length array of tuples.


Method Summary
public  voidaddColumn(String name, Class type)
     Add a data field / column to this TupleSet's members.
public  voidaddColumn(String name, Class type, Object defaultValue)
     Add a data field / column to this TupleSet's members.
public  voidaddColumn(String name, String expr)
     Add a data field / column to this TupleSet's members.
Parameters:
  name - the name of the data field
Parameters:
  expr - an uncompiled expression in the prefuse expressionlanguage.
public  voidaddColumn(String name, Expression expr)
     Add a data field / column to this TupleSet's members.
Parameters:
  name - the name of the data field
Parameters:
  expr - a compiled expression in the prefuse expressionlanguage.
public  voidaddColumns(Schema s)
     Add the data fields of the given Schema to the Tuples in this TupleSet.
public  voidaddPropertyChangeListener(PropertyChangeListener lstnr)
     Add a PropertyChangeListener to be notified of changes to the properties bounds to this TupleSet.
public  voidaddPropertyChangeListener(String key, PropertyChangeListener lstnr)
     Add a PropertyChangeListener to be notified of changes to a specific property bound to this TupleSet.
public  TupleaddTuple(Tuple t)
     Add a Tuple to this TupleSet.
public  voidaddTupleSetListener(TupleSetListener tsl)
     Add a listener to this tuple set that will be notified when tuples are added and removed from the set.
public  voidclear()
     Clear this TupleSet, removing all contained Tuples.
public  booleancontainsTuple(Tuple t)
     Indicates if a given Tuple is contained within this TupleSet.
public  ObjectgetClientProperty(String key)
    
public  intgetTupleCount()
     Get the number of tuples in this set.
public  booleanisAddColumnSupported()
     Indicates if this TupleSet supports the addition of data columns to its contained Tuple instances.
public  voidputClientProperty(String key, Object value)
    
public  voidremovePropertyChangeListener(PropertyChangeListener lstnr)
     Remove a PropertyChangeListener from this TupleSet.
public  voidremovePropertyChangeListener(String key, PropertyChangeListener lstnr)
     Remove a PropertyChangeListener from this TupleSet for a specific bound property.
public  booleanremoveTuple(Tuple t)
     Remove a Tuple from this TupleSet.
public  voidremoveTupleSetListener(TupleSetListener tsl)
     Remove a listener from this tuple set.
public  TuplesetTuple(Tuple t)
     Set the TupleSet contents to be a single Tuple.
public  Iteratortuples()
     Return an iterator over the tuples in this tuple set.
public  Iteratortuples(Predicate filter)
     Return an iterator over the tuples in this tuple set, filtered by the given predicate.
public  Iteratortuples(Predicate filter, Sort sort)
    

Field Detail
EMPTY_ARRAY
final public static Tuple[] EMPTY_ARRAY(Code)
An empty, zero-length array of tuples.





Method Detail
addColumn
public void addColumn(String name, Class type)(Code)
Add a data field / column to this TupleSet's members.
Parameters:
  name - the name of the data field
Parameters:
  type - the type of the data field



addColumn
public void addColumn(String name, Class type, Object defaultValue)(Code)
Add a data field / column to this TupleSet's members.
Parameters:
  name - the name of the data field
Parameters:
  type - the type of the data field
Parameters:
  defaultValue - the defaultValue of the data field



addColumn
public void addColumn(String name, String expr)(Code)
Add a data field / column to this TupleSet's members.
Parameters:
  name - the name of the data field
Parameters:
  expr - an uncompiled expression in the prefuse expressionlanguage. This will be compiled to a valid expression, and theresults of applying the expression to a Tuple will become thedata field value for that Tuple.
See Also:   prefuse.data.expression
See Also:   prefuse.data.expression.parser.ExpressionParser



addColumn
public void addColumn(String name, Expression expr)(Code)
Add a data field / column to this TupleSet's members.
Parameters:
  name - the name of the data field
Parameters:
  expr - a compiled expression in the prefuse expressionlanguage. The results of applying the expression to a Tuple willbecome the data field value for that Tuple.
See Also:   prefuse.data.expression



addColumns
public void addColumns(Schema s)(Code)
Add the data fields of the given Schema to the Tuples in this TupleSet. If this TupleSet contains heterogeneous Tuples (i.e., those from different source tables), all backing tables involved will be updated.
Parameters:
  s - the Schema of data columns to add to this TupleSet



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener lstnr)(Code)
Add a PropertyChangeListener to be notified of changes to the properties bounds to this TupleSet.
Parameters:
  lstnr - the PropertyChangeListener to add



addPropertyChangeListener
public void addPropertyChangeListener(String key, PropertyChangeListener lstnr)(Code)
Add a PropertyChangeListener to be notified of changes to a specific property bound to this TupleSet.
Parameters:
  key - the specific key for which to listen to properties changes
Parameters:
  lstnr - the PropertyChangeListener to add



addTuple
public Tuple addTuple(Tuple t)(Code)
Add a Tuple to this TupleSet. This method is optional, and may result in an UnsupportedOperationException on some TupleSet implementations.
Parameters:
  t - the Tuple add the actual Tuple instance stored in the TupleSet. This may benull to signify that the add failed, may be a new Tuple withvalues copied from the input tuple, or may be the input Tuple itself.



addTupleSetListener
public void addTupleSetListener(TupleSetListener tsl)(Code)
Add a listener to this tuple set that will be notified when tuples are added and removed from the set.
Parameters:
  tsl - the TupleSetListener to add



clear
public void clear()(Code)
Clear this TupleSet, removing all contained Tuples.



containsTuple
public boolean containsTuple(Tuple t)(Code)
Indicates if a given Tuple is contained within this TupleSet.
Parameters:
  t - the tuple to check for containment true if the Tuple is in this TupleSet, false otherwise



getClientProperty
public Object getClientProperty(String key)(Code)
Get an client property bound to this TupleSet
Parameters:
  key - the name of the property to retrieve the client property value, or null if no value wasfound for the given key.



getTupleCount
public int getTupleCount()(Code)
Get the number of tuples in this set. the tuple count



isAddColumnSupported
public boolean isAddColumnSupported()(Code)
Indicates if this TupleSet supports the addition of data columns to its contained Tuple instances. true is add column operations are supported, false otherwise



putClientProperty
public void putClientProperty(String key, Object value)(Code)
Set an arbitrary client property with this TupleSet
Parameters:
  key - the name of the property to set
Parameters:
  value - the value of the property to use



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener lstnr)(Code)
Remove a PropertyChangeListener from this TupleSet.
Parameters:
  lstnr - the PropertyChangeListener to remove



removePropertyChangeListener
public void removePropertyChangeListener(String key, PropertyChangeListener lstnr)(Code)
Remove a PropertyChangeListener from this TupleSet for a specific bound property.
Parameters:
  key - the specific key for which to remove the listener
Parameters:
  lstnr - the PropertyChangeListener to remove



removeTuple
public boolean removeTuple(Tuple t)(Code)
Remove a Tuple from this TupleSet.
Parameters:
  t - the Tuple to remove true if the Tuple was found and removed, false otherwise



removeTupleSetListener
public void removeTupleSetListener(TupleSetListener tsl)(Code)
Remove a listener from this tuple set.
Parameters:
  tsl - the TupleSetListener to remove



setTuple
public Tuple setTuple(Tuple t)(Code)
Set the TupleSet contents to be a single Tuple. This method is optional, and may result in an UnsupportedOperationException on some TupleSet implementations.
Parameters:
  t - the Tuple to set as the content of this TupleSet the actual Tuple instance stored in the TupleSet. This may benull to signify that the add failed, may be a new Tuple withvalues copied from the input tuple, or may be the input Tuple itself.



tuples
public Iterator tuples()(Code)
Return an iterator over the tuples in this tuple set. an iterator over this set's tuples



tuples
public Iterator tuples(Predicate filter)(Code)
Return an iterator over the tuples in this tuple set, filtered by the given predicate.
Parameters:
  filter - predicate to apply to tuples in this set, only tuplesfor which the predicate evaluates to true are included in the iteration a filtered iterator over this set's tuples



tuples
public Iterator tuples(Predicate filter, Sort sort)(Code)
Return an iterator over the tuples in this tuple set, filtered by the given predicate
Parameters:
  filter - predicate to apply to tuples in this set, only tuplesfor which the predicate evaluates to true are included in the iteration.If this value is null, no filtering will be performed.
Parameters:
  sort - the sorting criteria by which to order the returned tuples a filtered, sorted iterator over this set's tuples



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