Java Doc for Container.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » rdf » model » 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 » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.rdf.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.rdf.model.Container

All known Subclasses:   com.hp.hpl.jena.rdf.model.impl.ContainerImpl,
Container
public interface Container extends Resource(Code)
An RDF Container.

This interface defines methods for accessing RDF container resources. These methods operate on the RDF statements contained in a model. The container implementation may cache state from the underlying model, so objects should not be added to or removed from the container by directly manipulating its properties, whilst the container is being accessed through this interface.

When a member is deleted from a container using this interface, or an iterator returned through this interface, all the other members with higher ordinals are renumbered using an algorithm which may depend on the type of the container.

This interface provides methods supporting typed literals. This means that methods are provided which will translate a built in type, or an object to an RDF Literal. This translation is done by invoking the toString() method of the object, or its built in equivalent. The reverse translation is also supported. This is built in for built in types. Factory objects, provided by the application, are used for application objects.

This interface provides methods for supporting enhanced resources. An enhanced resource is a resource to which the application has added behaviour. RDF containers are examples of enhanced resources built in to this package. Enhanced resources are supported by encapsulating a resource created by an implementation in another class which adds the extra behaviour. Factory objects are used to construct such enhanced resources.


author:
   bwm
version:
   Release='$Name: $' Revision='$Revision: 1.7 $' Date='$Date: 2008/01/02 12:05:48 $'




Method Summary
public  Containeradd(RDFNode o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  Containeradd(boolean o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  Containeradd(long o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  Containeradd(char o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  Containeradd(float o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  Containeradd(double o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  Containeradd(String o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  Containeradd(String o, String l)
     Add a new value to a container.
public  Containeradd(Object o)
     Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
public  booleancontains(RDFNode o)
    
public  booleancontains(boolean o)
    
public  booleancontains(long o)
    
public  booleancontains(char o)
    
public  booleancontains(float o)
    
public  booleancontains(double o)
    
public  booleancontains(String o)
    
public  booleancontains(String o, String l)
    
public  booleancontains(Object o)
    
public  booleanisAlt()
    
public  booleanisBag()
    
public  booleanisSeq()
    
public  NodeIteratoriterator()
     Return an iterator over the values.

Note the interator returned is not a standard java.util.iterator. It has a close method which SHOULD be called if the application has not completed the iteration, but no longer requires the iterator.

public  Containerremove(Statement s)
     Remove a value from the container.

The predicate of the statement s identifies the ordinal of the value to be removed.

public  intsize()
     return the number values in the container.



Method Detail
add
public Container add(RDFNode o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



add
public Container add(boolean o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



add
public Container add(long o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



add
public Container add(char o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



add
public Container add(float o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



add
public Container add(double o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



add
public Container add(String o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



add
public Container add(String o, String l)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added.
Parameters:
  l - The language of the string to be added this object so that calls may be cascaded.



add
public Container add(Object o)(Code)
Add a new value to a container.

The size of the container is extended by 1 and the new value is added as the last element of the container.


Parameters:
  o - The value to be added. this object so that calls may be cascaded.



contains
public boolean contains(RDFNode o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



contains
public boolean contains(boolean o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



contains
public boolean contains(long o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



contains
public boolean contains(char o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



contains
public boolean contains(float o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



contains
public boolean contains(double o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



contains
public boolean contains(String o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



contains
public boolean contains(String o, String l)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for
Parameters:
  l - the language of the string tested true if and only if the container contains o



contains
public boolean contains(Object o)(Code)
Determine whether the container contains a value
Parameters:
  o - the value being tested for true if and only if the container contains o



isAlt
public boolean isAlt()(Code)



isBag
public boolean isBag()(Code)



isSeq
public boolean isSeq()(Code)



iterator
public NodeIterator iterator()(Code)
Return an iterator over the values.

Note the interator returned is not a standard java.util.iterator. It has a close method which SHOULD be called if the application has not completed the iteration, but no longer requires the iterator. This will enable the freeing of resources in, for example, implementations which store their models in a database.

. Return an iterator over the values.



remove
public Container remove(Statement s)(Code)
Remove a value from the container.

The predicate of the statement s identifies the ordinal of the value to be removed. Once removed, the values in the container with a higher ordinal value are renumbered. The renumbering algorithm depends on the type of container.


Parameters:
  s - The statement to be removed from the model. this container to enable cascading calls.




size
public int size()(Code)
return the number values in the container. the number of values int the container.



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