Package schema2template.grammar
Class PathPrinter
- java.lang.Object
-
- schema2template.grammar.PathPrinter
-
public class PathPrinter extends Object
ODF example class to print the MSV expressions in between a PuzzlePiece parent element and a direct PuzzlePiece child element.Example of a direct child: table:table -> table:table-row
Example of a non-direct child: table:table -> table:table-cellDirectly change the string constants EXAMPLE_PARENT and EXAMPLE_CHILD in the source code to set parent and child element.
-
-
Constructor Summary
Constructors Constructor Description PathPrinter(XMLModel xmlModel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
printChildPaths(String parentElementName, String childElementName)
static List<String>
printChildPaths(List<List<com.sun.msv.grammar.Expression>> paths)
List<String>
printChildPaths(PuzzlePiece parent, PuzzlePiece child)
-
-
-
Constructor Detail
-
PathPrinter
public PathPrinter(XMLModel xmlModel)
-
-
Method Detail
-
printChildPaths
public List<String> printChildPaths(String parentElementName, String childElementName)
-
printChildPaths
public List<String> printChildPaths(PuzzlePiece parent, PuzzlePiece child)
-
-