|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.app.OwMimeManager.OwReplaceScanner
protected abstract static class OwMimeManager.OwReplaceScanner
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
Constructor Summary | |
---|---|
protected |
OwMimeManager.OwReplaceScanner()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected OwMimeManager.OwReplaceScanner()
Method Detail |
---|
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 node
Exception
protected abstract String getReplacement(OwMainAppContext context_p, OwObjectReference obj_p, OwXMLUtil mimeNode_p) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |