Package org.jeyzer.profile.pattern
Class PatternUpdater
- java.lang.Object
-
- org.jeyzer.profile.pattern.PatternUpdater
-
- Direct Known Subclasses:
ExcludeThreadNameUpdater,ExcludeUpdater,ExecutorThreadNameUpdater,ExecutorUpdater,FunctionUpdater,LockerUpdater,OperationUpdater
public abstract class PatternUpdater extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Documentdocstatic StringJZR_EXCLUDEstatic StringJZR_EXCLUDE_THREAD_NAMEstatic StringJZR_EXECUTORstatic StringJZR_EXECUTOR_THREAD_NAMEstatic StringJZR_FUNCTIONstatic StringJZR_LOCKERstatic StringJZR_OPERATIONstatic StringJZR_PATTERNSstatic StringJZR_PROFILEprotected NodeListtargetNodesprotected ElementtypePatternsNode
-
Constructor Summary
Constructors Constructor Description PatternUpdater(Document doc)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidappendNewPattern(Element newNode)protected abstract ProfileEntrycreateProfileEntry(Element node, Element nextNode)abstract StringgetName()protected abstract ProfileEntryValidatorgetValidator()protected voidinsertNewPattern(Element newNode, Element nextNode)protected voidupdatePatternOptionalFields(ProfileEntry entry, Element newNode)voidupdatePatterns(Element newPatterns)
-
-
-
Field Detail
-
JZR_PROFILE
public static final String JZR_PROFILE
- See Also:
- Constant Field Values
-
JZR_PATTERNS
public static final String JZR_PATTERNS
- See Also:
- Constant Field Values
-
JZR_FUNCTION
public static final String JZR_FUNCTION
- See Also:
- Constant Field Values
-
JZR_OPERATION
public static final String JZR_OPERATION
- See Also:
- Constant Field Values
-
JZR_LOCKER
public static final String JZR_LOCKER
- See Also:
- Constant Field Values
-
JZR_EXCLUDE
public static final String JZR_EXCLUDE
- See Also:
- Constant Field Values
-
JZR_EXCLUDE_THREAD_NAME
public static final String JZR_EXCLUDE_THREAD_NAME
- See Also:
- Constant Field Values
-
JZR_EXECUTOR
public static final String JZR_EXECUTOR
- See Also:
- Constant Field Values
-
JZR_EXECUTOR_THREAD_NAME
public static final String JZR_EXECUTOR_THREAD_NAME
- See Also:
- Constant Field Values
-
doc
protected Document doc
-
typePatternsNode
protected Element typePatternsNode
-
targetNodes
protected NodeList targetNodes
-
-
Constructor Detail
-
PatternUpdater
public PatternUpdater(Document doc) throws InvalidPatternsException
- Throws:
InvalidPatternsException
-
-
Method Detail
-
getName
public abstract String getName()
-
updatePatterns
public void updatePatterns(Element newPatterns)
-
createProfileEntry
protected abstract ProfileEntry createProfileEntry(Element node, Element nextNode) throws InvalidProfileEntryException
- Throws:
InvalidProfileEntryException
-
getValidator
protected abstract ProfileEntryValidator getValidator()
-
updatePatternOptionalFields
protected void updatePatternOptionalFields(ProfileEntry entry, Element newNode)
-
appendNewPattern
protected void appendNewPattern(Element newNode)
-
-