org.ietf.ldap.LDAPSchemaElement Maven / Gradle / Ivy
/* **************************************************************************
* $OpenLDAP: pkg/jldap/org/ietf/ldap/LDAPSchemaElement.java,v 1.6 2004/01/16 04:55:00 sunilk Exp $
*
* Copyright (C) 1999, 2000, 2001 Novell, Inc. All Rights Reserved.
*
* THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
* TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
* TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
* AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
* IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
* OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
* PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
* THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
******************************************************************************/
package org.ietf.ldap;
import java.util.Enumeration;
/**
* The base class for representing LDAP schema elements.
*
* @see
com.novell.ldap.LDAPSchemaElement
*/
public abstract class LDAPSchemaElement extends LDAPAttribute
{
/* package */
com.novell.ldap.LDAPSchemaElement schemaElement;
/**
* Set the Novell class that implements LDAPSchemaElement
*/
/* package */
LDAPSchemaElement( com.novell.ldap.LDAPSchemaElement element)
{
super(element);
schemaElement = element;
return;
}
/**
* Returns an array of names for the element, or null if
* none is found.
*
* @see
com.novell.ldap.LDAPSchemaElement.getNames()
*/
public String[] getNames()
{
return schemaElement.getNames();
}
/**
* Returns the description of the element.
*
* @see
com.novell.ldap.LDAPSchemaElement.getDescription()
*/
public String getDescription()
{
return schemaElement.getDescription();
}
/**
* Returns the unique object identifier (OID) of the element.
*
* @see
com.novell.ldap.LDAPSchemaElement.getID()
*/
public String getID()
{
return schemaElement.getID();
}
/**
* Returns an array of all values of a specified optional or non-
* standard qualifier of the element.
*
* @see
com.novell.ldap.LDAPSchemaElement.getID(java.lang.String)
*/
public String[] getQualifier(String name)
{
return schemaElement.getQualifier( name);
}
/**
* Returns an enumeration of all qualifiers of the element which are
* vendor specific (begin with "X-").
*
* @see
com.novell.ldap.LDAPSchemaElement.getQualifierNames()
*/
public Enumeration getQualifierNames()
{
return schemaElement.getQualifierNames();
}
/**
* Returns whether the element has the OBSOLETE qualifier
* in its LDAP definition.
*
* @see
com.novell.ldap.LDAPSchemaElement.isObsolete()
*/
public boolean isObsolete()
{
return schemaElement.isObsolete();
}
/**
* Returns a string in a format suitable for directly adding to a
* directory, as a value of the particular schema element.
*
* @see
com.novell.ldap.LDAPSchemaElement.toString()
*/
public String toString()
{
return schemaElement.toString();
}
/**
* Sets the values of a specified optional or non-standard qualifier of
* the element.
*
* @see
com.novell.ldap.LDAPSchemaElement.setQualifier( java.lang.String,
java.lang.String[])
*/
public void setQualifier(String name, String[] values)
{
schemaElement.setQualifier( name, values);
return;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy