org.ldaptive.schema
Class Syntax

java.lang.Object
  extended by org.ldaptive.schema.AbstractSchemaElement
      extended by org.ldaptive.schema.Syntax
All Implemented Interfaces:
SchemaElement

public class Syntax
extends AbstractSchemaElement

Bean for an attribute syntax schema element.

   SyntaxDescription = LPAREN WSP
     numericoid                 ; object identifier
     [ SP "DESC" SP qdstring ]  ; description
     extensions WSP RPAREN      ; extensions
 

Version:
$Revision: 3189 $ $Date: 2016-11-01 17:21:43 -0400 (Tue, 01 Nov 2016) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class org.ldaptive.schema.AbstractSchemaElement
NO_WSP_REGEX, WSP_REGEX
 
Constructor Summary
Syntax(String s)
          Creates a new attribute syntax.
Syntax(String oid, String description, Extensions extensions)
          Creates a new attribute syntax.
 
Method Summary
 boolean equals(Object o)
          
 String format()
          Returns this schema element as formatted string per RFC 4512.
 String getOID()
          Returns the oid.
 int hashCode()
          
static Syntax parse(String definition)
          Parses the supplied definition string and creates an initialized attribute syntax.
 String toString()
          
 
Methods inherited from class org.ldaptive.schema.AbstractSchemaElement
containsBooleanExtension, getDescription, getExtensions, setDescription, setExtensions
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Syntax

public Syntax(String s)
Creates a new attribute syntax.

Parameters:
s - oid

Syntax

public Syntax(String oid,
              String description,
              Extensions extensions)
Creates a new attribute syntax.

Parameters:
oid - oid
description - description
extensions - extensions
Method Detail

getOID

public String getOID()
Returns the oid.

Returns:
oid

parse

public static Syntax parse(String definition)
                    throws ParseException
Parses the supplied definition string and creates an initialized attribute syntax.

Parameters:
definition - to parse
Returns:
attribute syntax
Throws:
ParseException - if the supplied definition is invalid

format

public String format()
Returns this schema element as formatted string per RFC 4512.

Returns:
formatted string

equals

public boolean equals(Object o)

Overrides:
equals in class AbstractSchemaElement

hashCode

public int hashCode()
Description copied from class: AbstractSchemaElement

Specified by:
hashCode in class AbstractSchemaElement

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.