org.apache.struts2.sitegraph.entities
Class FileBasedView
java.lang.Object
org.apache.struts2.sitegraph.entities.FileBasedView
- All Implemented Interfaces:
- View
- Direct Known Subclasses:
- FreeMarkerView, JspView, VelocityView
public abstract class FileBasedView
- extends java.lang.Object
- implements View
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileBasedView
public FileBasedView(java.io.File file)
getName
public java.lang.String getName()
- Description copied from interface:
View
- Name of view file
- Specified by:
getName
in interface View
- Returns:
- The name of the view file.
getTargets
public java.util.Set<Target> getTargets()
- Description copied from interface:
View
- Returns Set of Commands linked to by this view
- Specified by:
getTargets
in interface View
- Returns:
- a set of Targets
getLinkPattern
protected java.util.regex.Pattern getLinkPattern()
getActionPattern
protected abstract java.util.regex.Pattern getActionPattern()
getFormPattern
protected abstract java.util.regex.Pattern getFormPattern()
readFile
protected java.lang.String readFile(java.io.File file)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.