The java.pattern.property option enables an interpreter facility for Relaxer objects.
The java.pattern.property option takes one of the following values as a parameter:
The default configuration is false
.
No parameter implies that the parameter is 'true
'.
The java.pattern.property option generates
no additional classes, but RelaxerOrg.jar
is needed
for the class library.
The java.pattern.property option adds the following methods to Relaxer objects.
rGetParentRNode()
rSetParentRNode(IRNode)
rGetRNodes()
Object eval()
Object eval(IREvaluationContext)
Object eval(Object[], IREvaluationContext)
The rGetParentRNode
mehtod,
the rSetParentRNode
method, and
the rGetRNodes
methods are derived
from the java.pattern.composite option.
Three eval
methods are methods for interpreter.(?)
List 4.21.3.1[javaPatternProperty.rng] is a sample schema for the java.pattern.property option.
Can not access : src/java.pattern.property/javaPatternProperty.rng
Execution of Relaxer with the java.pattern.property option is as follows:
$ relaxer -java -java.pattern.property javaPatternProperty.rng
Because the Java generator is a default generator, execution of Relaxer as shown below has the same effect:
$ relaxer -java.pattern.property javaPatternProperty.rng
As a result, Relaxer generates six files:
List 4.21.3.1.1[JavaPatternProperty.java] is a sample program for the java.pattern.property option.
Can not access : src/java.pattern.property/JavaPatternProperty.java
Compilation of JavaPatternProperty
class is shown here:
$ javac JavaPatternProperty.java
List 4.21.3.2.1[javaPatternProperty.xml] is an XML document for testing.
Can not access : src/java.pattern.property/javaPatternProperty.xml
Execution of the JavaPatternProperty
class is shown here:
$ java JavaPatternProperty javaPatternProperty.xml