protected abstract static class OwMimeManager.OwReplaceScanner extends Object
Class to perform search and replace on strings.
Derive a subclass and implement getReplacement.
getReplacement is only called if pattern was found.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier | Constructor and Description |
---|---|
protected |
OwMimeManager.OwReplaceScanner() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getReplacement(OwMainAppContext context_p,
OwObjectReference obj_p,
OwXMLUtil mimeNode_p)
override with your replacement function
|
String |
replace(OwMainAppContext context_p,
OwObjectReference obj_p,
String strIn_p,
String strPattern_p,
OwXMLUtil mimeNode_p)
replace a string with the token from the overridden getReplacement method
|
public String replace(OwMainAppContext context_p, OwObjectReference obj_p, String strIn_p, String strPattern_p, OwXMLUtil mimeNode_p) throws Exception
strIn_p
- String string to search and replacestrPattern_p
- String to searchmimeNode_p
- OwXMLUtil MIME nodeException
protected abstract String getReplacement(OwMainAppContext context_p, OwObjectReference obj_p, OwXMLUtil mimeNode_p) throws Exception
Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.