cmlenz 02/02/24 14:59:23
Modified: src/share/org/apache/slide/content Tag: SLIDE_1_0
NodeProperty.java
Log:
Port bugfixes/enhancements from the HEAD branch:
- Committed by juergen, 01/12/07 05:50:56
"1) BUG: PropPatch did not rollback, if one action could not be executed
2) The property itself decides, if it is read-only or can be modified by
propPatch
3) all live properties have get/set methods, they are now used"
Actually, this patch fixes an oversight in one of the NodeProperty ctors
Revision Changes Path
No revision
No revision
1.6.2.1 +33 -33
jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java
Index: NodeProperty.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -r1.6 -r1.6.2.1
--- NodeProperty.java 4 Nov 2001 19:43:56 -0000 1.6
+++ NodeProperty.java 24 Feb 2002 22:59:23 -0000 1.6.2.1
@@ -1,13 +1,13 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java,v 1.6
2001/11/04 19:43:56 remm Exp $
- * $Revision: 1.6 $
- * $Date: 2001/11/04 19:43:56 $
+ * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java,v 1.6.2.1
2002/02/24 22:59:23 cmlenz Exp $
+ * $Revision: 1.6.2.1 $
+ * $Date: 2002/02/24 22:59:23 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -15,7 +15,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -23,15 +23,15 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
+ * from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
@@ -59,7 +59,7 @@
*
* [Additional notices, if required by prior licensing conditions]
*
- */
+ */
package org.apache.slide.content;
@@ -72,9 +72,9 @@
/**
* Node property class
- *
+ *
* @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.6.2.1 $
*/
public final class NodeProperty implements Serializable, Cloneable {
@@ -92,7 +92,7 @@
/**
* Constructor.
- *
+ *
* @param name Name
* @param value Value
*/
@@ -108,20 +108,20 @@
/**
* Constructor.
- *
+ *
* @param name Name
* @param value Value
* @param standard Standard
*/
public NodeProperty(String name, Object value, boolean protectedProperty) {
this(name, value);
- this.protectedProperty = true;
+ this.protectedProperty = protectedProperty;
}
/**
* Constructor.
- *
+ *
* @param name Name
* @param value Value
* @param namespace Namespace
@@ -134,7 +134,7 @@
/**
* Constructor.
- *
+ *
* @param name Name
* @param value Value
* @param namespace Namespace
@@ -177,7 +177,7 @@
/**
- * Value Type. If the value is stored as a String representation of the
+ * Value Type. If the value is stored as a String representation of the
* value, the type field is used.
* FIXME : Remove that
*/
@@ -195,7 +195,7 @@
/**
* Protected accessor.
- *
+ *
* @return boolean true
*/
public boolean isProtected() {
@@ -205,7 +205,7 @@
/**
* Property name accessor.
- *
+ *
* @return String property name
*/
public String getName() {
@@ -215,7 +215,7 @@
/**
* Property name mutator.
- *
+ *
* @param name Name
*/
void setName(String name) {
@@ -229,7 +229,7 @@
/**
* Namespace accessor.
- *
+ *
* @return String definition
*/
public String getNamespace() {
@@ -239,7 +239,7 @@
/**
* Namespace mutator.
- *
+ *
* @param definition Namepsace
*/
void setNamespace(String namespace) {
@@ -253,7 +253,7 @@
/**
* Value accessor.
- *
+ *
* @return Object value
*/
public Object getValue() {
@@ -263,7 +263,7 @@
/**
* Value mutator.
- *
+ *
* @param value Value
*/
void setValue(Object value) {
@@ -277,7 +277,7 @@
/**
* Type accessor.
- *
+ *
* @return String type
*/
public String getType() {
@@ -287,7 +287,7 @@
/**
* Type mutator.
- *
+ *
* @param type Type
*/
void setType(String type) {
@@ -301,7 +301,7 @@
/**
* Add permission.
- *
+ *
* @param permission Permission
*/
public void addPermission(NodePermission permission) {
@@ -311,7 +311,7 @@
/**
* Remove permission.
- *
+ *
* @param permission Permission to remove
*/
public void removePermission(NodePermission permission) {
@@ -321,7 +321,7 @@
/**
* Enumerate permissions.
- *
+ *
* @return Enumeration permissions
*/
public Enumeration enumeratePermissions() {
@@ -334,7 +334,7 @@
/**
* Clone.
- *
+ *
* @return Object clone
*/
NodeProperty cloneObject() {
@@ -349,7 +349,7 @@
/**
* Hash Code.
- *
+ *
* @return int Hash code value
*/
public int hashCode() {
@@ -361,7 +361,7 @@
* String representation of the permission.
* <p/>
* Format : ObjectUri-SubjectUri-ActionUri-InheritanceFlag
- *
+ *
* @return String String representation
*/
public String toString() {
@@ -371,7 +371,7 @@
/**
* Equals.
- *
+ *
* @param obj Object to test
* @return boolean True if the two object are equal :
* <li>obj is of type NodeProperty and is not null</li>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>