public final class Profile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Profile.AttributeEntry
A profiling attribute.
|
Modifier and Type | Field and Description |
---|---|
char |
valueSeparator
The character used to separate "tokens" when the value
of a profiling attribute has multiple tokens.
|
Constructor and Description |
---|
Profile(char separ)
Constructs a profile using specified character as a token separator.
|
Modifier and Type | Method and Description |
---|---|
void |
clearEntries()
Remove all profiling attributes.
|
Profile.AttributeEntry[] |
getEntries()
Returns an array containing all profiling attributes.
|
void |
process(Document doc)
Process specified document.
|
void |
putEntry(Profile.AttributeEntry entry)
Add or replace specified profiling attribute.
|
void |
putEntry(String attrName,
String attrValue)
Add or replace specified profiling attribute.
|
static String[] |
splitEffectivityValue(String value,
char separ)
Utility method: split specified profiling attribute value
into multiple "token" using specified separator.
|
public final char valueSeparator
public Profile(char separ)
valueSeparator
public void clearEntries()
public void putEntry(String attrName, String attrValue) throws IllegalArgumentException
attrName
- qualified name (using Clark's notation)
of the profiling attributeattrValue
- value, possibly containing multiple "tokens",
of the profiling attributeIllegalArgumentException
- if attribute name cannot be parsed
or attribute value is null or emptypublic static String[] splitEffectivityValue(String value, char separ)
public void putEntry(Profile.AttributeEntry entry)
public Profile.AttributeEntry[] getEntries()
public void process(Document doc)