|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.admin.ns.Syntax
Abstract class from which all concrete syntaxes must extend.
The pattern intended for this class is a modified "Prototype" pattern. The constructor is protected, but there is no cloning ability.
Constructor Summary | |
protected |
Syntax(java.lang.String name,
Strategy stgy,
int id)
Prototype constructor. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
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-dataMethod Detail |
public 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.public int getId()
public java.lang.String getName()
public Strategy getStrategy()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |