com.xmlmind.assembly
Class Profile

java.lang.Object
  extended by com.xmlmind.assembly.Profile

public final class Profile
extends java.lang.Object

A conditional processing profile.


Nested Class Summary
static class Profile.AttributeEntry
          A profiling attribute.
 
Field Summary
 char valueSeparator
          The character used to separate "tokens" when the value of a profiling attribute has multiple tokens.
 
Constructor Summary
Profile(char separ)
          Constructs a profile using specified character as a token separator.
 
Method Summary
 void clearEntries()
          Remove all profiling attributes.
 Profile.AttributeEntry[] getEntries()
          Returns an array containing all profiling attributes.
 void process(org.w3c.dom.Document doc)
          Process specified document.
 void putEntry(Profile.AttributeEntry entry)
          Add or replace specified profiling attribute.
 void putEntry(java.lang.String attrName, java.lang.String attrValue)
          Add or replace specified profiling attribute.
static java.lang.String[] splitEffectivityValue(java.lang.String value, char separ)
          Utility method: split specified profiling attribute value into multiple "token" using specified separator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueSeparator

public final char valueSeparator
The character used to separate "tokens" when the value of a profiling attribute has multiple tokens.

Constructor Detail

Profile

public Profile(char separ)
Constructs a profile using specified character as a token separator.

See Also:
valueSeparator
Method Detail

clearEntries

public void clearEntries()
Remove all profiling attributes.


putEntry

public void putEntry(java.lang.String attrName,
                     java.lang.String attrValue)
              throws java.lang.IllegalArgumentException
Add or replace specified profiling attribute.

Parameters:
attrName - qualified name (using Clark's notation) of the profiling attribute
attrValue - value, possibly containing multiple "tokens", of the profiling attribute
Throws:
java.lang.IllegalArgumentException - if attribute name cannot be parsed or attribute value is null or empty

splitEffectivityValue

public static java.lang.String[] splitEffectivityValue(java.lang.String value,
                                                       char separ)
Utility method: split specified profiling attribute value into multiple "token" using specified separator.


putEntry

public void putEntry(Profile.AttributeEntry entry)
Add or replace specified profiling attribute.


getEntries

public Profile.AttributeEntry[] getEntries()
Returns an array containing all profiling attributes.


process

public void process(org.w3c.dom.Document doc)
Process specified document.