|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.BoolRelFormatV1<E>
E
- the type of element.public class BoolRelFormatV1<E>
This interface is used to represent boolean relationship formats.
Constructor Summary | |
---|---|
BoolRelFormatV1(SimpleFormat<E> elementFormat)
Constructs a new boolean relation format object that uses the provided format for its elements. |
Method Summary | |
---|---|
java.lang.String |
format(Or<And<E>> boolRel)
Returns a formatted string representation of the provided boolean relationship. |
static BoolRelFormatV1<java.lang.String> |
getBasic()
Returns an BoolRelFormatV1 that does not format or parse the
elements supplied to it. |
Formatter<E> |
getElementFormatter()
Returns the formatter for the elements of this set format. |
Parser<E> |
getElementParser()
Returns the parser for the elements of this set format. |
Or<And<E>> |
parse(java.lang.String set)
Parses the provided string and returns its corresponding collection of elements as a LinkedHashSet . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sbrt.shell.text.Formatter |
---|
format |
Constructor Detail |
---|
public BoolRelFormatV1(SimpleFormat<E> elementFormat)
elementFormat
- the format to be used for elements.Method Detail |
---|
public static BoolRelFormatV1<java.lang.String> getBasic()
BoolRelFormatV1
that does not format or parse the
elements supplied to it. In other words, it returns an
BoolRelFormatV1
with the most basic possible functionality.
BoolRelFormatV1
that does not format or parse the
elements supplied to it.public java.lang.String format(Or<And<E>> boolRel)
boolRel
- the boolean relationship to be formatted.
public Or<And<E>> parse(java.lang.String set)
LinkedHashSet
.
parse
in interface Parser<Or<And<E>>>
set
- the string to be parsed.
public Formatter<E> getElementFormatter()
public Parser<E> getElementParser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |