public static class PrettyPrintOptions.Global extends PrettyPrintOptions
PrettyPrintOptions.Global, PrettyPrintOptions.Localscope| Constructor and Description |
|---|
PrettyPrintOptions.Global(Namespace 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.
|
PrettyPrintOptions.Global |
getGlobalOptions() |
java.lang.String |
getIndentStep() |
int |
getLinelength() |
MetaModelManager |
getMetaModelManager() |
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 |
setIndentStep(java.lang.String indentStep) |
void |
setLinelength(int linelength) |
void |
setMetaModelManager(MetaModelManager metaModelManager) |
getScope, setUseParenthesespublic PrettyPrintOptions.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 PrettyPrintOptionspublic void addRestrictedNames(@NonNull
java.lang.Iterable<java.lang.String> names)
addRestrictedNames in class PrettyPrintOptions@Nullable
public java.lang.String getAlias(@NonNull
Namespace namespace)
PrettyPrintOptionsgetAlias in class PrettyPrintOptions@Nullable public org.eclipse.emf.common.util.URI getBaseURI()
PrettyPrintOptionsgetBaseURI in class PrettyPrintOptions@NonNull public PrettyPrintOptions.Global getGlobalOptions()
getGlobalOptions in class PrettyPrintOptions@NonNull public java.lang.String getIndentStep()
getIndentStep in class PrettyPrintOptionspublic int getLinelength()
getLinelength in class PrettyPrintOptions@NonNull public java.util.Set<Namespace> getAliasedNamespaces()
@Nullable public MetaModelManager getMetaModelManager()
getMetaModelManager in class PrettyPrintOptions@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 PrettyPrintOptionspublic void setAliases(@NonNull
java.util.Map<Namespace,java.lang.String> namespace2alias)
public void setBaseURI(@Nullable
org.eclipse.emf.common.util.URI baseURI)
public void setIndentStep(@NonNull
java.lang.String indentStep)
setIndentStep in class PrettyPrintOptionspublic void setLinelength(int linelength)
setLinelength in class PrettyPrintOptionspublic void setMetaModelManager(MetaModelManager metaModelManager)