public abstract class AbstractFormProcessor extends Object implements FormProcessor
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
static String |
DESTINATION |
protected String |
matchPattern |
protected Pattern |
patternMatcher |
protected FormProcessorRegistry |
processorRegistry |
Constructor and Description |
---|
AbstractFormProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Determines whether this form processor is active
|
boolean |
isApplicable(Item item)
Determines whether this form processor is applicable for
the supplied item
|
void |
register()
Registers this processor with the processor registry
|
void |
setActive(boolean active)
Sets whether this processor is active
|
protected void |
setFormItemType(Form form,
String type)
Gets the Item from the
form parameter and sets its type
field to type . |
protected void |
setFormItemUrl(Form form,
String url)
Gets the Item from the
form parameter and sets its URL field
to url . |
void |
setMatchPattern(String pattern)
Sets the match pattern
|
void |
setProcessorRegistry(FormProcessorRegistry processorRegistry)
Sets the form process registry
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generate, persist
public static final String DESTINATION
protected FormProcessorRegistry processorRegistry
protected String matchPattern
protected boolean active
protected Pattern patternMatcher
public void setProcessorRegistry(FormProcessorRegistry processorRegistry)
processorRegistry
- The FormProcessorRegistry instancepublic void setMatchPattern(String pattern)
pattern
- The regex pattern to use to determine if this processor is
applicablepublic void setActive(boolean active)
active
- true if the processor should be activepublic void register()
public boolean isActive()
FormProcessor
isActive
in interface FormProcessor
public boolean isApplicable(Item item)
FormProcessor
isApplicable
in interface FormProcessor
item
- The item the form is being generated forprotected void setFormItemType(Form form, String type)
form
parameter and sets its type
field to type
.form
- Formtype
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.