java.lang.Object
org.apache.jena.sparql.serializer.FormatterBase
org.apache.jena.sparql.serializer.FormatterElement
- All Implemented Interfaces:
ElementVisitor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Control whether NOT EXIST/EXISTS indents in a fixed way or based on the layout sizestatic final boolean
Control pretty printing of free standing RDF listsstatic final boolean
Control pretty printing of RDF listsstatic final boolean
Control whether GRAPH indents in a fixed way or based on the layout sizestatic final boolean
Control whether the first item of a group is on the same line as the {static final boolean
Control whether (non-triple) patterns have a final dot - it can be droppedstatic final int
static final boolean
Control whether to show triple pattern boundaries - creates extra nestingstatic final boolean
Control pretty printingstatic final int
static final int
static final int
Control triples pretty printingstatic final int
static final boolean
Control whether disjunction has set of delimiters - as it's a group usually, these aren't needed -
Constructor Summary
ConstructorDescriptionFormatterElement
(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext context) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static void
format
(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext cxt, Element el) boolean
void
visit
(ElementAssign el) void
visit
(ElementBind el) void
visit
(ElementData el) void
visit
(ElementDataset el) void
visit
(ElementExists el) void
visit
(ElementFilter el) void
visit
(ElementGroup el) void
visit
(ElementLateral el) void
visit
(ElementMinus el) void
void
void
visit
(ElementOptional el) void
void
visit
(ElementService el) void
visit
(ElementSubQuery el) void
void
visit
(ElementUnfold el) void
visit
(ElementUnion el) void
visitAsGroup
(Element el) Methods inherited from class org.apache.jena.sparql.serializer.FormatterBase
finishVisit, startVisit
-
Field Details
-
INDENT
public static final int INDENT- See Also:
-
PATTERN_MARKERS
public static final boolean PATTERN_MARKERSControl whether to show triple pattern boundaries - creates extra nesting- See Also:
-
GROUP_SEP_DOT
public static final boolean GROUP_SEP_DOTControl whether (non-triple) patterns have a final dot - it can be dropped- See Also:
-
GROUP_FIRST_ON_SAME_LINE
public static final boolean GROUP_FIRST_ON_SAME_LINEControl whether the first item of a group is on the same line as the {- See Also:
-
PRETTY_PRINT
public static final boolean PRETTY_PRINTControl pretty printing- See Also:
-
FMT_LISTS
public static final boolean FMT_LISTSControl pretty printing of RDF lists- See Also:
-
FMT_FREE_STANDING_LISTS
public static final boolean FMT_FREE_STANDING_LISTSControl pretty printing of free standing RDF lists- See Also:
-
UNION_MARKERS
public static final boolean UNION_MARKERSControl whether disjunction has set of delimiters - as it's a group usually, these aren't needed- See Also:
-
GRAPH_FIXED_INDENT
public static final boolean GRAPH_FIXED_INDENTControl whether GRAPH indents in a fixed way or based on the layout size- See Also:
-
ELEMENT1_FIXED_INDENT
public static final boolean ELEMENT1_FIXED_INDENTControl whether NOT EXIST/EXISTS indents in a fixed way or based on the layout size- See Also:
-
TRIPLES_SUBJECT_COLUMN
public static final int TRIPLES_SUBJECT_COLUMNControl triples pretty printing- See Also:
-
TRIPLES_SUBJECT_LONG
public static final int TRIPLES_SUBJECT_LONG- See Also:
-
TRIPLES_PROPERTY_COLUMN
public static final int TRIPLES_PROPERTY_COLUMN- See Also:
-
TRIPLES_COLUMN_GAP
public static final int TRIPLES_COLUMN_GAP- See Also:
-
-
Constructor Details
-
FormatterElement
-
-
Method Details
-
format
public static void format(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext cxt, Element el) -
asString
-
topMustBeGroup
public boolean topMustBeGroup() -
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visit
- Specified by:
visit
in interfaceElementVisitor
-
visitAsGroup
-