|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.process.workers.partition.Partition
Parsing definition for this partition.
| Constructor Summary | |
Partition(java.lang.String type,
java.lang.String startPattern,
java.lang.String endPattern)
Creates a new instance of Partition which matches a fragment of text bounded by the start and end patterns. |
|
Partition(java.lang.String type,
java.lang.String startPattern,
java.lang.String endPattern,
org.writersforge.bellows.Datum[] xmlWorkers)
Creates a new instance of Partition which matches a fragment of text bounded by the start and end patterns. |
|
| Method Summary | |
int |
calculatePartitionLength(java.lang.String text)
Finds the length of this partition. |
java.lang.String |
getEnd()
Retrieves the ending pattern for this parition. |
java.lang.String |
getStart()
Retrieves the starting pattern for this parition. |
java.lang.String |
getType()
Retrieves the type name of this parition. |
org.writersforge.bellows.Datum[] |
getWorkers()
Retrieves embedded XML workers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Partition(java.lang.String type,
java.lang.String startPattern,
java.lang.String endPattern)
throws java.lang.IllegalArgumentException
type - partition type namestartPattern - regular expression start of partition textendPattern - regular expression end of partition text
java.lang.IllegalArgumentException - if any parameters are null or empty
public Partition(java.lang.String type,
java.lang.String startPattern,
java.lang.String endPattern,
org.writersforge.bellows.Datum[] xmlWorkers)
throws java.lang.IllegalArgumentException
type - partition type namestartPattern - regular expression start of partition textendPattern - regular expression end of partition textxmlWorkers - optional XML workers to run
java.lang.IllegalArgumentException - if any parameters are null or empty| Method Detail |
public final java.lang.String getType()
public final java.lang.String getStart()
public final java.lang.String getEnd()
public final org.writersforge.bellows.Datum[] getWorkers()
public int calculatePartitionLength(java.lang.String text)
text - text content to analyze
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||