You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/11/08 21:25:28 UTC

svn commit: r472623 - /incubator/roller/trunk/src/org/apache/roller/pojos/HierarchicalPersistentObject.java

Author: agilliland
Date: Wed Nov  8 12:25:27 2006
New Revision: 472623

URL: http://svn.apache.org/viewvc?view=rev&rev=472623
Log:
code reformatting.


Modified:
    incubator/roller/trunk/src/org/apache/roller/pojos/HierarchicalPersistentObject.java

Modified: incubator/roller/trunk/src/org/apache/roller/pojos/HierarchicalPersistentObject.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/HierarchicalPersistentObject.java?view=diff&rev=472623&r1=472622&r2=472623
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/HierarchicalPersistentObject.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/HierarchicalPersistentObject.java Wed Nov  8 12:25:27 2006
@@ -1,45 +1,43 @@
 /*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-*  contributor license agreements.  The ASF licenses this file to You
-* under the Apache License, Version 2.0 (the "License"); you may not
-* use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.  For additional information regarding
-* copyright in this work, please see the NOTICE file in the top level
-* directory of this distribution.
-*/
-/*
- * Created on Jan 13, 2004
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  The ASF licenses this file to You
+ * under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
  */
+
 package org.apache.roller.pojos;
 
-import org.apache.roller.RollerException;
 import java.util.List;
+import org.apache.roller.RollerException;
+
 
 /**
  * Abstract base class for hierarchical persistent objects. Provides generic
- * implementations of save and remove that know how to handle parents, children, 
+ * implementations of save and remove that know how to handle parents, children,
  * and descendents.
- * 
- * @author David M Johnson
  */
-public abstract class HierarchicalPersistentObject extends PersistentObject
-{        
-    HierarchicalPersistentObject mNewParent = null;   
+public abstract class HierarchicalPersistentObject extends PersistentObject {
+    
+    
+    HierarchicalPersistentObject mNewParent = null;
     
     /** Create an association between object and ancestor. */
     public abstract Assoc createAssoc(
-        HierarchicalPersistentObject object, 
-        HierarchicalPersistentObject ancestor,
-        String relation ) throws RollerException;
-        
+            HierarchicalPersistentObject object,
+            HierarchicalPersistentObject ancestor,
+            String relation ) throws RollerException;
+    
     /** Name of association class which must implement Assoc. */
     public abstract Class getAssocClass();
     
@@ -53,7 +51,7 @@
     public abstract void setParent(HierarchicalPersistentObject parent);
     
     public abstract Assoc getParentAssoc() throws RollerException;
-
+    
     public abstract List getChildAssocs() throws RollerException;
     
     public abstract List getAllDescendentAssocs() throws RollerException;
@@ -61,12 +59,11 @@
     public abstract List getAncestorAssocs() throws RollerException;
     
     /** Returns true if this object is in use and should not be deleted */
-    public abstract boolean isInUse() throws RollerException;   
-
+    public abstract boolean isInUse() throws RollerException;
+    
     /** Should be needed only be manager objects */
-    public HierarchicalPersistentObject getNewParent()
-    {
+    public HierarchicalPersistentObject getNewParent() {
         return mNewParent;
     }
-       
+    
 }