|
Copyright (C) 2003,2004 dr. Cristiano Sadun | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.text.ffp.OrCondition
A FlatFileParser.Condition
that holds if and only if one the
conditions it groups hold.
Constructor Summary | |
OrCondition(FlatFileParser.Condition[] conditions)
Create an OrCondition based on an array of conditions |
|
OrCondition(FlatFileParser.Condition c1,
FlatFileParser.Condition c2)
Create an OrCondition based on two conditions |
Method Summary | |
boolean |
holds(int logicalLineCount,
int physicalLineCount,
FlatFileParser.LineReader reader)
The conditions are evaluated in the same order given at construction and if one holds, the method returns true. |
java.lang.String |
toString()
Return a human-readable description of the condition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OrCondition(FlatFileParser.Condition c1, FlatFileParser.Condition c2)
c1
- the first conditionc2
- the second conditionpublic OrCondition(FlatFileParser.Condition[] conditions)
conditions
- the array of conditions.Method Detail |
public boolean holds(int logicalLineCount, int physicalLineCount, FlatFileParser.LineReader reader) throws java.io.IOException
holds
in interface FlatFileParser.Condition
logicalLineCount
- the logical lines read so farphysicalLineCount
- the physical lines read so farreader
- an object allowing to read lines on the file
java.io.IOException
- if a I/O problem arises when reading linesFlatFileParser.Condition.holds(int, int, org.sadun.text.ffp.FlatFileParser.LineReader)
public java.lang.String toString()
FlatFileParser.Condition
toString
in interface FlatFileParser.Condition
|
Copyright (C) 2003,2004 dr. Cristiano Sadun | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |