|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.relaxng.converter.RestrRelaxNG2XMLGraph
public class RestrRelaxNG2XMLGraph
Production of XML graph fragment from Restricted RELAX NG schema.
Constructor Summary | |
---|---|
RestrRelaxNG2XMLGraph(XMLGraph xg,
DatatypeLibrary libs)
Constructs a new converter. |
Method Summary | |
---|---|
XMLGraph |
convert(Grammar g)
Converts the given schema into a new XML graph. |
XMLGraphFragment |
extend(Grammar g)
Extends the XML graph with a fragment corresponding to the given schema. |
Map<String,SequenceNode> |
getDefineNodes()
Returns map from define names to XML graph nodes from the last conversion. |
void |
useSurroundingChoiceNodes(boolean b)
Enables/disables use of extra ChoiceNode s around each ElementNode and
AttributeNode and above each TextNode . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RestrRelaxNG2XMLGraph(XMLGraph xg, DatatypeLibrary libs)
xg
- XML graph where fragments are to be added (null if using convert
)libs
- datatype converterMethod Detail |
---|
public XMLGraph convert(Grammar g) throws ConverterException
g
- schema
ConverterException
- if unable to convert schemapublic XMLGraphFragment extend(Grammar g) throws ConverterException
g
- schema
ConverterException
- if unable to convert schemapublic Map<String,SequenceNode> getDefineNodes()
public void useSurroundingChoiceNodes(boolean b)
ChoiceNode
s around each ElementNode
and
AttributeNode
and above each TextNode
.
Default: disabled
b
- enable if true, disable if false
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |