Source Code Cross Referenced for ItemDefinition.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
003:         */
004:        package javax.jcr.nodetype;
005:
006:        /**
007:         * Superclass of {@link NodeDefinition} and {@link PropertyDefinition}.
008:         *
009:         */
010:        public interface ItemDefinition {
011:
012:            /**
013:             * Gets the node type that contains the declaration of <i>this</i>
014:             * <code>ItemDefinition</code>.
015:             *
016:             * In implementations that support node type registration an
017:             * <code>ItemDefinition</code> object may be acquired (in the form of a
018:             * <code>NodeDefinitionTemplate</code> or
019:             * <code>PropertyDefinitionTemplate</code>) that is not attached to a live
020:             * <code>NodeType</code>. In such cases this method returns <code>null</code>.
021:             *
022:             * @return a <code>NodeType</code> object.
023:             */
024:            public NodeType getDeclaringNodeType();
025:
026:            /**
027:             * Gets the name of the child item. If <code>"*"</code>, this
028:             * <code>ItemDefinition</code> defines a residual set of child items. That is,
029:             * it defines the characteristics of all those child items with names apart
030:             * from the names explicitly used in other child item definitions.
031:             * <p/>
032:             * In implementations that support node type registration, if this
033:             * <code>ItemDefinition</code> object is actually a newly-created empty
034:             * <code>PropertyDefinitionTemplate</code> or
035:             * <code>NodeDefinitionTemplate</code>, then this method will return
036:             * <code>null</code>.
037:             *
038:             * @return a <code>String</code> denoting the name or <code>"*"</code>.
039:             */
040:            public String getName();
041:
042:            /**
043:             * Reports whether the item is to be automatically created when its parent node is created.
044:             * If <code>true</code>, then this <code>ItemDefinition</code> will necessarily not be a residual
045:             * set definition but will specify an actual item name (in other words getName() will not
046:             * return "*").
047:             * <p/>
048:             * An autocreated item is created immediately when its parent node is created
049:             * in the transient session space. Creation of autocreated items is never
050:             * delayed until <code>save</code>.
051:             * <p/>
052:             * In implementations that support node type registration, if this
053:             * <code>ItemDefinition</code> object is actually a newly-created empty
054:             * <code>PropertyDefinitionTemplate</code> or
055:             * <code>NodeDefinitionTemplate</code>, then this method will return
056:             * <code>false</code>.
057:             *
058:             * @return a <code>boolean</code>.
059:             */
060:            public boolean isAutoCreated();
061:
062:            /**
063:             * Reports whether the item is mandatory. A mandatory item is one that,
064:             * if its parent node exists, must also exist.
065:             * <p/>
066:             * This means that a mandatory single-value property
067:             * must have a value (since there is no such thing a <code>null</code> value).
068:             * In the case of multi-value properties this means that the property must exist,
069:             * though it can have zero or more values.
070:             * <p/>
071:             * An attempt to save a node that has a mandatory child item without first
072:             * creating that child item  will throw a
073:             * <code>ConstraintViolationException</code> on <code>save</code>.
074:             * <p/>
075:             * In implementations that support node type registration, if this
076:             * <code>ItemDefinition</code> object is actually a newly-created empty
077:             * <code>PropertyDefinitionTemplate</code> or
078:             * <code>NodeDefinitionTemplate</code>, then this method will return
079:             * <code>false</code>.
080:             * <p/>
081:             * An item definition cannot be both residual and mandatory.
082:             *
083:             * @return a <code>boolean</code>
084:             */
085:            public boolean isMandatory();
086:
087:            /**
088:             * Gets the <code>OnParentVersion </code> status of the child item. This
089:             * governs what occurs (in implementations that support versioning) when the
090:             * parent node of this item is checked-in. One of:
091:             * <ul>
092:             * <li><code>OnParentVersionAction.COPY</code></li>
093:             * <li><code>OnParentVersionAction.VERSION</code></li>
094:             * <li><code>OnParentVersionAction.IGNORE</code></li>
095:             * <li><code>OnParentVersionAction.INITIALIZE</code></li>
096:             * <li><code>OnParentVersionAction.COMPUTE</code></li>
097:             * <li><code>OnParentVersionAction.ABORT</code></li>
098:             * </ul>
099:             * <p/>
100:             * In implementations that support node type registration, if this
101:             * <code>ItemDefinition</code> object is actually a newly-created empty
102:             * <code>PropertyDefinitionTemplate</code> or
103:             * <code>NodeDefinitionTemplate</code>, then this method will return
104:             * <code>OnParentVersionAction.COPY</code>.
105:             *
106:             * @return  a <code>int</code> constant meber of {@link javax.jcr.version.OnParentVersionAction}.
107:             */
108:            public int getOnParentVersion();
109:
110:            /**
111:             * Reports whether the child item is protected. In level 2 implementations, a protected item is one that cannot be removed
112:             * (xcept by removing its parent) or modified through the the standard write methods of this API (that is, <code>Item.remove</code>,
113:             * <code>Node.addNode</code>, <code>Node.setProperty</code> and <code>Property.setValue</code>).
114:             * <p/>
115:             * A protected node may be removed or modified (in a level 2 implementation), however, through some
116:             * mechanism not defined by this specification or as a side-effect of operations other than
117:             * the standard write methods of the API.
118:             * <p/>
119:             * In implementations that support node type registration, if this
120:             * <code>ItemDefinition</code> object is actually a newly-created empty
121:             * <code>PropertyDefinitionTemplate</code> or
122:             * <code>NodeDefinitionTemplate</code>, then this method will return
123:             * <code>false</code>.
124:             *
125:             * @return a <code>boolean</code>.
126:             */
127:            public boolean isProtected();
128:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.