public abstract class PrettyPrintOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PrettyPrintOptions.Global
Global PrettyPrintOptions apply regardless of pretty printer nesting.
|
static class |
PrettyPrintOptions.Local
Local PrettyPrintOptions may be overridden in nested pretty printer contexts.
|
Constructor and Description |
---|
PrettyPrintOptions(Namespace scope) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addReservedNames(java.lang.Iterable<java.lang.String> names) |
abstract 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.
|
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() |
abstract PrettyPrintOptions.Global |
getGlobalOptions() |
java.lang.String |
getIndentStep() |
int |
getLinelength() |
abstract java.util.Set<java.lang.String> |
getReservedNames() |
abstract java.util.Set<java.lang.String> |
getRestrictedNames() |
Namespace |
getScope() |
void |
setIndentStep(java.lang.String indentStep) |
void |
setLinelength(int linelength) |
@Nullable protected final Namespace scope
public PrettyPrintOptions(@Nullable Namespace scope)
public abstract void addReservedNames(@NonNull java.lang.Iterable<java.lang.String> names)
public abstract void addRestrictedNames(@NonNull java.lang.Iterable<java.lang.String> names)
@Nullable public java.lang.String getAlias(@NonNull Namespace namespace)
@Nullable public org.eclipse.emf.common.util.URI getBaseURI()
@Nullable public EnvironmentFactory getEnvironmentFactory()
@NonNull public abstract PrettyPrintOptions.Global getGlobalOptions()
@NonNull public java.lang.String getIndentStep()
public int getLinelength()
@Nullable public abstract java.util.Set<java.lang.String> getReservedNames()
@Nullable public abstract java.util.Set<java.lang.String> getRestrictedNames()
@Nullable public Namespace getScope()
public void setIndentStep(@NonNull java.lang.String indentStep)
public void setLinelength(int linelength)