You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2006/08/13 22:26:48 UTC
svn commit: r431232 - in
/directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions:
Dummy.java OidObject.java SchemaObject.java
Author: akarasulu
Date: Sun Aug 13 13:26:47 2006
New Revision: 431232
URL: http://svn.apache.org/viewvc?rev=431232&view=rev
Log:
added schema and oid objects
Added:
directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/OidObject.java
directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/SchemaObject.java
Removed:
directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/Dummy.java
Added: directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/OidObject.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/OidObject.java?rev=431232&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/OidObject.java (added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/OidObject.java Sun Aug 13 13:26:47 2006
@@ -0,0 +1,76 @@
+/*
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ */
+package org.apache.directory.server2.schema.definitions;
+
+
+/**
+ * A schema object with an OID and aliases names.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface OidObject extends SchemaObject
+{
+ /**
+ * Gets whether or not this OidObject has been inactivated. All
+ * OidObjects except Syntaxes allow for this parameter within their
+ * definition. For Syntaxes this property should always return false in
+ * which case it is never included in the description.
+ *
+ * @return true if inactive, false if active
+ */
+ boolean isObsolete();
+
+
+ /**
+ * Gets usually what is the numeric object identifier assigned to this
+ * OidObject. All schema objects except for MatchingRuleUses have an OID
+ * assigned specifically to them. A MatchingRuleUse's OID really is the OID
+ * of it's MatchingRule and not specific to the MatchingRuleUse. This
+ * effects how MatchingRuleUse objects are maintained by the system.
+ *
+ * @return an OID for this OidObject or its MatchingRule if this
+ * OidObject is a MatchingRuleUse object
+ */
+ String getOid();
+
+
+ /**
+ * Gets aliased names for this OidObject if any exists for it.
+ *
+ * @return the names for this OidObject
+ */
+ String[] getNames();
+
+
+ /**
+ * Gets the first name in the set of short names for this SchemaObject if
+ * any exists for it.
+ *
+ * @return the first of the names for this SchemaObject or null if one does
+ * not exist
+ */
+ String getName();
+
+
+ /**
+ * Gets a short description about this SchemaObject.
+ *
+ * @return a short description about this SchemaObject
+ */
+ String getDescription();
+}
Added: directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/SchemaObject.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/SchemaObject.java?rev=431232&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/SchemaObject.java (added)
+++ directory/sandbox/akarasulu/apacheds-2.0/schema/definitions/src/main/java/org/apache/directory/server2/schema/definitions/SchemaObject.java Sun Aug 13 13:26:47 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed 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.
+ *
+ */
+package org.apache.directory.server2.schema.definitions;
+
+
+import java.io.Serializable;
+
+
+/**
+ * A marker interface for SchemaObjects.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface SchemaObject extends Serializable
+{
+
+}