public abstract class Syntax
extends java.lang.Object
implements java.io.Serializable
The pattern intended for this class is a modified "Prototype" pattern. The constructor is protected, but there is no cloning ability.
| Modifier | Constructor and Description |
|---|---|
protected |
Syntax(java.lang.String name,
Strategy stgy,
int id)
Prototype constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ValueComponent |
createValueComponent()
Creates a ValueList object.
|
ValueComponent |
createValueComponent(java.lang.Object initData)
Creates a ValueComponent for a particular syntax.
|
int |
getId()
Returns the ID of the syntax.
|
java.lang.String |
getName()
Returns the name of the syntax.
|
Strategy |
getStrategy()
Returns the strategy associated with this syntax.
|
java.lang.String |
toString()
Returns the string representation of this syntax.
|
protected Syntax(java.lang.String name,
Strategy stgy,
int id)
Derived classes should use protected constructors.
name - Name of the syntaxstgy - An associated syntax strategy.id - The syntax ID, which should come from directory meta-datapublic Strategy getStrategy()
public java.lang.String getName()
public int getId()
public java.lang.String toString()
toString in class java.lang.Objectpublic ValueComponent createValueComponent()
This is the only public method that creates new ValueList objects that take no parameters.
public ValueComponent createValueComponent(java.lang.Object initData) throws ComponentCreationException
This is the only public method that creates new ValueList objects that can specify initialization data.
initData - Initialization data value that is inserted into the ValueComponent.ComponentCreationException - Thrown when initData does not contain the
required data for value creation, or when the syntax is not a composite type.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.