public static class PrettyPrintOptions.Global extends PrettyPrintOptions
PrettyPrintOptions.Global, PrettyPrintOptions.Local
Modifier and Type | Method and Description |
---|---|
void |
addAliases(Namespace namespace,
String alias) |
void |
addReservedNames(Iterable<String> names) |
void |
addRestrictedNames(Iterable<String> names) |
String |
getAlias(Namespace namespace)
Return a name to be used when referencing element as the first element in a qualified name.
|
Set<Namespace> |
getAliasedNamespaces() |
URI |
getBaseURI()
Return a URI against which to deresolve the first element of qualified names that
reference external resources.
|
EnvironmentFactory |
getEnvironmentFactory() |
PrettyPrintOptions.Global |
getGlobalOptions() |
String |
getIndentStep() |
int |
getLinelength() |
Set<String> |
getReservedNames() |
Set<String> |
getRestrictedNames() |
boolean |
isShowDefaultMultiplicities() |
void |
setAliases(Map<Namespace,String> namespace2alias) |
void |
setBaseURI(URI baseURI) |
void |
setEnvironmentFactory(EnvironmentFactory environmentFactory) |
void |
setIndentStep(String indentStep) |
void |
setLinelength(int linelength) |
void |
setShowDefaultMultiplicities(boolean showDefaultMultiplicities) |
getScope
public Global(Namespace scope)
public void addReservedNames(Iterable<String> names)
addReservedNames
in class PrettyPrintOptions
public void addRestrictedNames(Iterable<String> names)
addRestrictedNames
in class PrettyPrintOptions
public String getAlias(Namespace namespace)
PrettyPrintOptions
getAlias
in class PrettyPrintOptions
public URI getBaseURI()
PrettyPrintOptions
getBaseURI
in class PrettyPrintOptions
public EnvironmentFactory getEnvironmentFactory()
getEnvironmentFactory
in class PrettyPrintOptions
public PrettyPrintOptions.Global getGlobalOptions()
getGlobalOptions
in class PrettyPrintOptions
public String getIndentStep()
getIndentStep
in class PrettyPrintOptions
public int getLinelength()
getLinelength
in class PrettyPrintOptions
public Set<String> getReservedNames()
getReservedNames
in class PrettyPrintOptions
public Set<String> getRestrictedNames()
getRestrictedNames
in class PrettyPrintOptions
public boolean isShowDefaultMultiplicities()
isShowDefaultMultiplicities
in class PrettyPrintOptions
public void setBaseURI(URI baseURI)
public void setEnvironmentFactory(EnvironmentFactory environmentFactory)
public void setIndentStep(String indentStep)
setIndentStep
in class PrettyPrintOptions
public void setLinelength(int linelength)
setLinelength
in class PrettyPrintOptions
public void setShowDefaultMultiplicities(boolean showDefaultMultiplicities)
setShowDefaultMultiplicities
in class PrettyPrintOptions
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.