|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.xsdimporter.utils.XSDOccurences
public final class XSDOccurences
Helper class for creating intervals from string representation of occurrences.
Method Summary | |
---|---|
static RegexpInterval |
createInterval(String minOccurence,
String maxOccurence)
Create interval from arguments. |
static RegexpInterval |
createInterval(String minOccurence,
String maxOccurence,
boolean minHasPriority)
Create interval from arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RegexpInterval createInterval(String minOccurence, String maxOccurence)
RegexpInterval.getOnce()
).
In case the parsed value of lower limit exceeds the upper, both bounds of the interval
are set to the upper limit value (that is the smaller of those two).
minOccurence
- String containing the value of lower limit of occurrences, which will be parsed.maxOccurence
- String containing the value of upper limit of occurrences, which will be parsed.
public static RegexpInterval createInterval(String minOccurence, String maxOccurence, boolean minHasPriority)
minOccurence
- String containing the value of lower limit of occurrences, which will be parsed.maxOccurence
- String containing the value of upper limit of occurrences, which will be parsed.minHasPriority
- Set priority to either upper limit
(if false
) or lower limit (if true
), in case the lower limit exceeds the upper.
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |