public abstract class AbstractFormProcessor extends java.lang.Object implements FormProcessor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
static java.lang.String |
DESTINATION |
protected java.lang.String |
matchPattern |
protected java.util.regex.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,
java.lang.String type)
Gets the Item from the
form parameter and sets its type
field to type. |
protected void |
setFormItemUrl(Form form,
java.lang.String url)
Gets the Item from the
form parameter and sets its URL field
to url. |
void |
setMatchPattern(java.lang.String pattern)
Sets the match pattern
|
void |
setProcessorRegistry(FormProcessorRegistry processorRegistry)
Sets the form process registry
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgenerate, persistpublic static final java.lang.String DESTINATION
protected FormProcessorRegistry processorRegistry
protected java.lang.String matchPattern
protected boolean active
protected java.util.regex.Pattern patternMatcher
public void setProcessorRegistry(FormProcessorRegistry processorRegistry)
processorRegistry - The FormProcessorRegistry instancepublic void setMatchPattern(java.lang.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()
FormProcessorisActive in interface FormProcessorpublic boolean isApplicable(Item item)
FormProcessorisApplicable in interface FormProcessoritem - The item the form is being generated forpublic java.lang.String toString()
toString in class java.lang.Objectprotected void setFormItemType(Form form, java.lang.String type)
form parameter and sets its type
field to type.form - type - protected void setFormItemUrl(Form form, java.lang.String url)
form parameter and sets its URL field
to url.form - url - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.