From 3cc3e4b53445ec79ab5f063e58f00622f663e0ee Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 23 Aug 2001 14:12:31 +0000 Subject: [PATCH] add some getter methods for code accessing this class from other packages --- src/helma/objectmodel/db/Relation.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/helma/objectmodel/db/Relation.java b/src/helma/objectmodel/db/Relation.java index 29afe50c..352453a5 100644 --- a/src/helma/objectmodel/db/Relation.java +++ b/src/helma/objectmodel/db/Relation.java @@ -286,6 +286,27 @@ public class Relation { } } + /** + * Does this relation describe a virtual (collection) node? + */ + public boolean isVirtual () { + return virtual; + } + + /** + * Return the prototype to be used for object reached by this relation + */ + public String getPrototype () { + return prototype; + } + + /** + * Return the name of the local property this relation is defined for + */ + public String getPropName () { + return propName; + } + /** * Add a constraint to the current list of constraints