|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrintContext
A status object passed along during printing of SPIN expressions in SPARQL syntax.
Method Summary | |
---|---|
PrintContext |
clone()
Creates a clone of this PrintContext so that it can be used recursively. |
int |
getIndentation()
Gets the indentation level starting at 0. |
NodeToLabelMap |
getNodeToLabelMap()
Gets the Jena NodeToLabelMap associated with this. |
boolean |
getPrintPrefixes()
Checks whether prefix declarations shall be printed into the head of the query. |
boolean |
getUseExtraPrefixes()
Checks if the extra prefixes (such as afn:) shall be used to resolve qnames, even if they are not imported by the current model. |
boolean |
getUsePrefixes()
Checks if resource URIs shall be abbreviated with qnames at all. |
boolean |
isNested()
Checks if we are inside braces such as a nested expression. |
void |
print(java.lang.String str)
Prints a given string to the output stream. |
void |
printIndentation(int depth)
Prints the indentation string depth times. |
void |
printKeyword(java.lang.String str)
Prints a keyword to the output stream. |
void |
println()
Prints a line break to the output stream. |
void |
printURIResource(Resource resource)
Prints a URI to the output stream. |
void |
printVariable(java.lang.String str)
Prints a variable to the output stream. |
void |
setIndentation(int value)
Changes the indentation level. |
void |
setNested(boolean value)
Sets the nested flag. |
void |
setPrintPrefixes(boolean value)
Sets the printPrefixes flag. |
void |
setUseExtraPrefixes(boolean value)
Specifies whether the context shall use extra prefixes. |
void |
setUsePrefixes(boolean value)
Specifies whether the context shall use any prefixes at all. |
Method Detail |
---|
PrintContext clone()
int getIndentation()
setIndentation(int)
NodeToLabelMap getNodeToLabelMap()
boolean getPrintPrefixes()
boolean getUseExtraPrefixes()
setUseExtraPrefixes(boolean)
boolean getUsePrefixes()
boolean isNested()
void print(java.lang.String str)
str
- the String to printvoid printIndentation(int depth)
depth
- the number of indentations to printvoid printKeyword(java.lang.String str)
str
- the keyword stringvoid println()
void printURIResource(Resource resource)
resource
- the URI of the resource to printvoid printVariable(java.lang.String str)
str
- the variable string excluding the ?void setIndentation(int value)
value
- the new indentation levelvoid setNested(boolean value)
value
- the new valueisNested()
void setPrintPrefixes(boolean value)
value
- the new valuegetPrintPrefixes()
void setUseExtraPrefixes(boolean value)
value
- the new valuegetUseExtraPrefixes()
void setUsePrefixes(boolean value)
value
- the new valuegetUsePrefixes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |