public static class PrettyPrintOptions.Global extends PrettyPrintOptions
PrettyPrintOptions.Global, PrettyPrintOptions.Local
scope
Modifier and Type | Method and Description |
---|---|
void |
addAliases(Namespace namespace,
java.lang.String alias) |
void |
addReservedNames(java.lang.Iterable<java.lang.String> names) |
void |
addRestrictedNames(java.lang.Iterable<java.lang.String> names) |
java.lang.String |
getAlias(Namespace namespace)
Return a name to be used when referencing element as the first element in a qualified name.
|
java.util.Set<Namespace> |
getAliasedNamespaces() |
org.eclipse.emf.common.util.URI |
getBaseURI()
Return a URI against which to deresolve the first element of qualified names that
reference external resources.
|
EnvironmentFactory |
getEnvironmentFactory() |
PrettyPrintOptions.Global |
getGlobalOptions() |
java.lang.String |
getIndentStep() |
int |
getLinelength() |
java.util.Set<java.lang.String> |
getReservedNames() |
java.util.Set<java.lang.String> |
getRestrictedNames() |
void |
setAliases(java.util.Map<Namespace,java.lang.String> namespace2alias) |
void |
setBaseURI(org.eclipse.emf.common.util.URI baseURI) |
void |
setEnvironmentFactory(EnvironmentFactory environmentFactory) |
void |
setIndentStep(java.lang.String indentStep) |
void |
setLinelength(int linelength) |
getScope
public Global(@Nullable Namespace scope)
public void addAliases(@NonNull Namespace namespace, @NonNull java.lang.String alias)
public void addReservedNames(@NonNull java.lang.Iterable<java.lang.String> names)
addReservedNames
in class PrettyPrintOptions
public void addRestrictedNames(@NonNull java.lang.Iterable<java.lang.String> names)
addRestrictedNames
in class PrettyPrintOptions
@Nullable public java.lang.String getAlias(@NonNull Namespace namespace)
PrettyPrintOptions
getAlias
in class PrettyPrintOptions
@Nullable public org.eclipse.emf.common.util.URI getBaseURI()
PrettyPrintOptions
getBaseURI
in class PrettyPrintOptions
@Nullable public EnvironmentFactory getEnvironmentFactory()
getEnvironmentFactory
in class PrettyPrintOptions
@NonNull public PrettyPrintOptions.Global getGlobalOptions()
getGlobalOptions
in class PrettyPrintOptions
@NonNull public java.lang.String getIndentStep()
getIndentStep
in class PrettyPrintOptions
public int getLinelength()
getLinelength
in class PrettyPrintOptions
@NonNull public java.util.Set<Namespace> getAliasedNamespaces()
@Nullable public java.util.Set<java.lang.String> getReservedNames()
getReservedNames
in class PrettyPrintOptions
@Nullable public java.util.Set<java.lang.String> getRestrictedNames()
getRestrictedNames
in class PrettyPrintOptions
public void setAliases(@NonNull java.util.Map<Namespace,java.lang.String> namespace2alias)
public void setBaseURI(@Nullable org.eclipse.emf.common.util.URI baseURI)
public void setEnvironmentFactory(EnvironmentFactory environmentFactory)
public void setIndentStep(@NonNull java.lang.String indentStep)
setIndentStep
in class PrettyPrintOptions
public void setLinelength(int linelength)
setLinelength
in class PrettyPrintOptions