org.jostraca.util
Class PrefixOperatorPSM

java.lang.Object
  extended byorg.jostraca.util.PrefixOperatorPSM
All Implemented Interfaces:
PropertySetModifier

public class PrefixOperatorPSM
extends java.lang.Object
implements PropertySetModifier

Performs modifications on property values based on a prefix operation. The syntax has the form: (operation/qualifier) value, where the qualifier is optional. The following operations are defined:

(file/x)
Value is a file name to be converted to an absolute path. Qualifers (x) are tr: template-relative (default) and or: output-relative.
(nil)
Makes no change to the value. Can be used to escape vales begining with the operation syntax, like so: (nil) (foo) bar -> (foo) bar.


Nested Class Summary
static class PrefixOperatorPSM.FileOperation
           
static class PrefixOperatorPSM.NilOperation
           
static interface PrefixOperatorPSM.Operation
           
 
Field Summary
static java.lang.String CN
           
static java.lang.String REGEXP_prefix
           
 
Constructor Summary
PrefixOperatorPSM()
           
 
Method Summary
 void modify(PropertySet pSourcePropertySet, PropertySet pTargetPropertySet)
          Modify the target PropertySet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CN

public static final java.lang.String CN

REGEXP_prefix

public static final java.lang.String REGEXP_prefix
See Also:
Constant Field Values
Constructor Detail

PrefixOperatorPSM

public PrefixOperatorPSM()
Method Detail

modify

public void modify(PropertySet pSourcePropertySet,
                   PropertySet pTargetPropertySet)
            throws StandardException
Modify the target PropertySet.

Specified by:
modify in interface PropertySetModifier
Parameters:
pSourcePropertySet - PropertySet containing source values
pTargetPropertySet - PropertySet to set new values in
Throws:
StandardException


Copyright © 2000-2002 Richard Rodger