Powered by SmartDoc

The java.pattern.property option

The java.pattern.property option enables an interpreter facility for Relaxer objects.

Parameters

The java.pattern.property option takes one of the following values as a parameter:

true
Enables an interpreter facility.
false
Disables an interpreter facility.

The default configuration is false. No parameter implies that the parameter is 'true'.

Artifacts

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.

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.(?)

Example

List 4.21.3.1[javaPatternProperty.rng] is a sample schema for the java.pattern.property option.

javaPatternProperty.rng
Can not access : src/java.pattern.property/javaPatternProperty.rng

Build

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.

JavaPatternProperty.java
Can not access : src/java.pattern.property/JavaPatternProperty.java

Compilation of JavaPatternProperty class is shown here:

$ javac JavaPatternProperty.java

Execution

List 4.21.3.2.1[javaPatternProperty.xml] is an XML document for testing.

javaPatternProperty.xml
Can not access : src/java.pattern.property/javaPatternProperty.xml

Execution of the JavaPatternProperty class is shown here:

$ java JavaPatternProperty javaPatternProperty.xml

Example 2

Example 3