public class AttributeRules extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AttributeRules.ReplaceRule
Represents a regular expression replacement rule.
|
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_FOLLOW
Action constant to follow an attribute or property.
|
static String |
ACTION_MASK
Action constant to mask printing the value of an attribute or property.
|
static String |
ACTION_PRINT
Action constant to print an attribute or property or just a reference if
the type is LibraryObject.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttributeAction(LibraryObject lo,
String attribute)
Returns the action for the given attribute.
|
String |
getPropertyAction(Map propertyRules,
String property)
Return the action for the given property based on the set of rules passed
in.
|
Map |
getPropertyRules(LibraryObject lo,
String attribute)
Returns the set of property rules for the given attribute.
|
Map |
getPropertyRules(Map propertyRules,
String property)
Returns the set of rules for the given property, in the context of the
passed in rules.
|
AttributeRules.ReplaceRule[] |
getReplaceRules(LibraryObject lo,
String attribute)
Returns the replace rules for the given attribute.
|
static AttributeRules |
getRootAttributeRules()
Returns the root set of rules.
|
public static final String ACTION_FOLLOW
Value: follow
public static final String ACTION_MASK
Value: mask
public static final String ACTION_PRINT
Value: print
public static AttributeRules getRootAttributeRules()
public String getPropertyAction(Map propertyRules, String property)
propertyRules
- the rulesproperty
- the propertypublic Map getPropertyRules(Map propertyRules, String property)
propertyRules
- the current rule setproperty
- the propertynull
if no specific
rules were foundpublic AttributeRules.ReplaceRule[] getReplaceRules(LibraryObject lo, String attribute) throws IfsException
lo
- the object being fingerprintedattribute
- the attributenull
IfsException
- if the operation failspublic String getAttributeAction(LibraryObject lo, String attribute) throws IfsException
lo
- the object being fingerprintedattribute
- the attributeIfsException
- if the operation failspublic Map getPropertyRules(LibraryObject lo, String attribute) throws IfsException
lo
- the object being fingerprintedattribute
- the attributenull
if no specific
property rules were foundIfsException
- if the operation failsCopyright © 2023. All rights reserved.