Java Doc for NodeTypeManager.java in  » 6.0-JDK-Modules » jsr-283 » javax » jcr » nodetype » 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 » 6.0 JDK Modules » jsr 283 » javax.jcr.nodetype 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.jcr.nodetype.NodeTypeManager

NodeTypeManager
public interface NodeTypeManager (Code)
Allows for the retrieval and (in implementations that support it) the registration of node types. Accessed via Workspace.getNodeTypeManager .




Method Summary
public  NodeDefinitionTemplatecreateNodeDefinitionTemplate()
     Returns an empty NodeDefinitionTemplate which can then be used to create a child node definition and attached to a NodeTypeTemplate.
public  NodeTypeTemplatecreateNodeTypeTemplate()
     Returns an empty NodeTypeTemplate which can then be used to define a node type and passed to NodeTypeManager.registerNodeType.
public  NodeTypeTemplatecreateNodeTypeTemplate(NodeTypeDefinition ntd)
     Returns a NodeTypeTemplate holding the specified node type definition.
public  PropertyDefinitionTemplatecreatePropertyDefinitionTemplate()
     Returns an empty PropertyDefinitionTemplate which can then be used to create a property definition and attached to a NodeTypeTemplate.
public  NodeTypeIteratorgetAllNodeTypes()
     Returns an iterator over all available node types (primary and mixin).
public  NodeTypeIteratorgetMixinNodeTypes()
     Returns an iterator over all available mixin node types.
public  NodeTypegetNodeType(String nodeTypeName)
     Returns the named node type.

Throws a NoSuchNodeTypeException if a node type by that name does not exist.

Throws a RepositoryException if another error occurs.
Parameters:
  nodeTypeName - the name of an existing node type.

public  NodeTypeIteratorgetPrimaryNodeTypes()
     Returns an iterator over all available primary node types.
public  booleanhasNodeType(String name)
     Returns true if a node type with the specified name is registered.
public  NodeTyperegisterNodeType(NodeTypeDefinition ntd, boolean allowUpdate)
     Registers a new node type or updates an existing node type using the specified definition and returns the resulting NodeType object.
public  NodeTypeIteratorregisterNodeTypes(Collection definitions, boolean allowUpdate)
     Registers or updates the specified Collection of NodeTypeDefinition objects.
public  voidunregisterNodeType(String name)
     Unregisters the specified node type.
public  voidunregisterNodeTypes(String[] names)
     Unregisters the specified set of node types.



Method Detail
createNodeDefinitionTemplate
public NodeDefinitionTemplate createNodeDefinitionTemplate() throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns an empty NodeDefinitionTemplate which can then be used to create a child node definition and attached to a NodeTypeTemplate.

Throws an UnsupportedRepositoryOperationException if this implementation does not support node type registration. A NodeDefinitionTemplate.
throws:
  UnsupportedRepositoryOperationException - if this implementationdoes not support node type registration.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




createNodeTypeTemplate
public NodeTypeTemplate createNodeTypeTemplate() throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns an empty NodeTypeTemplate which can then be used to define a node type and passed to NodeTypeManager.registerNodeType.

Throws an UnsupportedRepositoryOperationException if this implementation does not support node type registration. A NodeTypeTemplate.
throws:
  UnsupportedRepositoryOperationException - if this implementationdoes not support node type registration.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




createNodeTypeTemplate
public NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd) throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns a NodeTypeTemplate holding the specified node type definition. This template can then be altered and passed to NodeTypeManager.registerNodeType.

Throws an UnsupportedRepositoryOperationException if this implementation does not support node type registration.
Parameters:
  ntd - a NodeTypeDefinition. A NodeTypeTemplate.
throws:
  UnsupportedRepositoryOperationException - if this implementationdoes not support node type registration.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




createPropertyDefinitionTemplate
public PropertyDefinitionTemplate createPropertyDefinitionTemplate() throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns an empty PropertyDefinitionTemplate which can then be used to create a property definition and attached to a NodeTypeTemplate.

Throws an UnsupportedRepositoryOperationException if this implementation does not support node type registration. A PropertyDefinitionTemplate.
throws:
  UnsupportedRepositoryOperationException - if this implementationdoes not support node type registration.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




getAllNodeTypes
public NodeTypeIterator getAllNodeTypes() throws RepositoryException(Code)
Returns an iterator over all available node types (primary and mixin). An NodeTypeIterator.
throws:
  RepositoryException - if an error occurs.



getMixinNodeTypes
public NodeTypeIterator getMixinNodeTypes() throws RepositoryException(Code)
Returns an iterator over all available mixin node types. If none are available, an empty iterator is returned. An NodeTypeIterator.
throws:
  RepositoryException - if an error occurs.



getNodeType
public NodeType getNodeType(String nodeTypeName) throws NoSuchNodeTypeException, RepositoryException(Code)
Returns the named node type.

Throws a NoSuchNodeTypeException if a node type by that name does not exist.

Throws a RepositoryException if another error occurs.
Parameters:
  nodeTypeName - the name of an existing node type. A NodeType object.
throws:
  NoSuchNodeTypeException - if no node type by the given name exists.
throws:
  RepositoryException - if another error occurs.




getPrimaryNodeTypes
public NodeTypeIterator getPrimaryNodeTypes() throws RepositoryException(Code)
Returns an iterator over all available primary node types. An NodeTypeIterator.
throws:
  RepositoryException - if an error occurs.



hasNodeType
public boolean hasNodeType(String name) throws RepositoryException(Code)
Returns true if a node type with the specified name is registered. Returns false otherwise.
Parameters:
  name - a String. a boolean
throws:
  RepositoryException - if an error occurs.
since:
   JCR 2.0



registerNodeType
public NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate) throws InvalidNodeTypeDefinitionException, NodeTypeExistsException, UnsupportedRepositoryOperationException, RepositoryException(Code)
Registers a new node type or updates an existing node type using the specified definition and returns the resulting NodeType object.

Typically, the object passed to this method will be a NodeTypeTemplate (a subclass of NodeTypeDefinition) acquired from NodeTypeManager.createNodeTypeTemplate and then filled-in with definition information.

Throws an InvalidNodeTypeDefinitionException if the NodeTypeDefinition is invalid.

Throws a NodeTypeExistsException if allowUpdate is false and the NodeTypeDefinition specifies a node type name that is already registered.

Throws an UnsupportedRepositoryOperationException if this implementation does not support node type registration.
Parameters:
  ntd - an NodeTypeDefinition.
Parameters:
  allowUpdate - a boolean the registered node type
throws:
  InvalidNodeTypeDefinitionException - if theNodeTypeDefinition is invalid.
throws:
  NodeTypeExistsException - if allowUpdate isfalse and the NodeTypeDefinition specifies anode type name that is already registered.
throws:
  UnsupportedRepositoryOperationException - if this implementationdoes not support node type registration.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




registerNodeTypes
public NodeTypeIterator registerNodeTypes(Collection definitions, boolean allowUpdate) throws InvalidNodeTypeDefinitionException, NodeTypeExistsException, UnsupportedRepositoryOperationException, RepositoryException(Code)
Registers or updates the specified Collection of NodeTypeDefinition objects. This method is used to register or update a set of node types with mutual dependencies. Returns an iterator over the resulting NodeType objects.

The effect of the method is "all or nothing"; if an error occurs, no node types are registered or updated.

Throws an InvalidNodeTypeDefinitionException if a NodeTypeDefinition within the Collection is invalid or if the Collection contains an object of a type other than NodeTypeDefinition.

Throws a NodeTypeExistsException if allowUpdate is false and a NodeTypeDefinition within the Collection specifies a node type name that is already registered.

Throws an UnsupportedRepositoryOperationException if this implementation does not support node type registration.
Parameters:
  definitions - a collection of NodeTypeDefinitions
Parameters:
  allowUpdate - a boolean the registered node types.
throws:
  InvalidNodeTypeDefinitionException - if aNodeTypeDefinition within the Collection isinvalid or if the Collection contains an object of a typeother than NodeTypeDefinition.
throws:
  NodeTypeExistsException - if allowUpdate isfalse and a NodeTypeDefinition within theCollection specifies a node type name that is alreadyregistered.
throws:
  UnsupportedRepositoryOperationException - if this implementationdoes not support node type registration.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




unregisterNodeType
public void unregisterNodeType(String name) throws UnsupportedRepositoryOperationException, NoSuchNodeTypeException, RepositoryException(Code)
Unregisters the specified node type.

Throws a NoSuchNodeTypeException if no registered node type exists with the specified name.
Parameters:
  name - a String.
throws:
  UnsupportedRepositoryOperationException - if this implementationdoes not support node type registration.
throws:
  NoSuchNodeTypeException - if no registered node type exists withthe specified name.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




unregisterNodeTypes
public void unregisterNodeTypes(String[] names) throws UnsupportedRepositoryOperationException, NoSuchNodeTypeException, RepositoryException(Code)
Unregisters the specified set of node types. Used to unregister a set of node types with mutual dependencies.

Throws a NoSuchNodeTypeException if one of the names listed is not a registered node type.

Throws an UnsupportedRepositoryOperationException if this implementation does not support node type registration.
Parameters:
  names - a String array
throws:
  UnsupportedRepositoryOperationException - if this implementation does not support node type registration.
throws:
  NoSuchNodeTypeException - if one of the names listed is not a registered node type.
throws:
  RepositoryException - if another error occurs.
since:
   JCR 2.0




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