|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.schema.impl.export.NameListImplBuilder<R,E>
R
- result rule. If E
is ElementExp
then
R
must be instance of INewElementRuleP
. If
E
is AttributeExp
then R
must be
instance of IAttributeRuleP
.E
- the expression instance. May be ElementExp
or
AttributeExp
only.public final class NameListImplBuilder<R extends ISingleQNameP,E extends com.sun.msv.grammar.NameClassAndExpression>
Factory, that can build appropriate NameListImpl
.
Method Summary | |
---|---|
NameListImpl<R> |
build(E exp,
RulePool pool)
Builds NameListImpl from given expression. |
NameListImpl<R> |
build(Map<String,Set<E>> map,
RulePool pool)
Builds NameListImpl from given map of element or attribute
expressions. |
NameListImpl<R> |
build(Set<E> exps,
RulePool pool)
Builds NameListImpl from given set of element/attribute
expressions. |
static NameListImplBuilder<IAttributeRuleP,com.sun.msv.grammar.AttributeExp> |
getAttributeBuilder()
Returns builder that builds attribute rules. |
static NameListImplBuilder<INewElementRuleP,com.sun.msv.grammar.ElementExp> |
getElementBuilder()
Returns builder that builds element rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NameListImplBuilder<INewElementRuleP,com.sun.msv.grammar.ElementExp> getElementBuilder()
public static NameListImplBuilder<IAttributeRuleP,com.sun.msv.grammar.AttributeExp> getAttributeBuilder()
public NameListImpl<R> build(E exp, RulePool pool)
NameListImpl
from given expression.
exp
- NameClassAndExpression
instance.pool
- pool where to place new NewElementRuleImpl
/
AttributeRuleImpl
objects.
public NameListImpl<R> build(Set<E> exps, RulePool pool)
NameListImpl
from given set of element/attribute
expressions. All expressions in given set must be either
AttributeExp
s or ElementExp
, mixing is
not allowed.
exps
- Set of NameClassAndExpression
instances.pool
- pool where to place new NewElementRuleImpl
/
AttributeRuleImpl
objects.
public NameListImpl<R> build(Map<String,Set<E>> map, RulePool pool)
NameListImpl
from given map of element or attribute
expressions. This map maps element or attribute's localname string to set
of NameClassAndExpression
s, that may generate this
element.
map
- Maps localname String
to Set
of
NameClassAndExpression
s.pool
- pool where to place new NewElementRuleImpl
(or
AttributeRuleImpl
) objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |