public static class SchemaConfig.NsConfig
extends java.lang.Object
This class is public since it must be accessed as part of the public API for the containing class.
Modifier and Type | Class and Description |
---|---|
static class |
SchemaConfig.NsConfig.DialectParam
Helper class to read and set the dialect parameter.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
defDb
Flag indicating if namespace is loaded by default.
|
private java.lang.String |
importFile
Name of DF import file.
|
private java.lang.String |
name
Identifying name for namespace.
|
private java.util.Map<java.lang.String,java.lang.String> |
parameters
Namespace parameters.
|
private boolean |
prefer
Namespace is preferred in ambiguous name conflicts.
|
private boolean |
primaryDb
Flag indicating if namespace is primary.
|
private java.lang.String |
xmlFile
XML namespace document filename.
|
Constructor and Description |
---|
NsConfig()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDialectParameter(SchemaConfig.NsConfig.DialectParam dialectParam)
Add the specifid dialect parameters to the namespace.
|
void |
addParameter(Parameter param)
Add the specifid parameter to the namespace.
|
java.lang.String |
getImportFile()
Get DF import filename.
|
java.lang.String |
getName()
Get identifying namespace name.
|
java.lang.String |
getParameter(java.lang.String param)
Get the value for the specified namespace parameter.
|
java.lang.String |
getXmlFile()
Get XML filename associated with the configured namespace.
|
boolean |
isDefault()
Is this namespace loaded in the schema dictionary by default?
|
boolean |
isPreferred()
Is this namespace preferred when it's components are involved in
ambiguous name conflicts?
|
boolean |
isPrimary()
Is this namespace loaded in the schema is primary?
|
void |
setDefault(boolean defDb)
Set default flag for this namespace configuration.
|
void |
setImportFile(java.lang.String importFile)
Set DF import filename.
|
void |
setName(java.lang.String name)
Set name.
|
void |
setPreferred(boolean prefer)
Set preferred flag for this namespace configuration.
|
void |
setPrimary(boolean primaryDb)
Set primary flag for this namespace configuration.
|
void |
setXmlFile(java.lang.String xmlFile)
Set XML filename associated with the configured namespace.
|
private java.lang.String name
private java.lang.String importFile
private java.lang.String xmlFile
private boolean defDb
private boolean primaryDb
private boolean prefer
private java.util.Map<java.lang.String,java.lang.String> parameters
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Namespace name.public java.lang.String getImportFile()
public void setImportFile(java.lang.String importFile)
importFile
- Import filename.public java.lang.String getXmlFile()
public void setXmlFile(java.lang.String xmlFile)
xmlFile
- XML document filename.public boolean isDefault()
true
if namespace is loaded by default, else
false
.public void setDefault(boolean defDb)
defDb
- true
if namespace is loaded by default, else
false
.public boolean isPrimary()
true
if namespace is primary, else
false
.public void setPrimary(boolean primaryDb)
primaryDb
- true
if namespace is primary, else
false
.public boolean isPreferred()
true
if namespace is preferred, else
false
.public void setPreferred(boolean prefer)
prefer
- true
if namespace is preferred, else
false
.public void addParameter(Parameter param)
param
- The parameter.public void addDialectParameter(SchemaConfig.NsConfig.DialectParam dialectParam)
All the parameter's names will follow the
[dialect]/[parameter]
syntax.
dialectParam
- The dialect parameter.public java.lang.String getParameter(java.lang.String param)
param
- The parameter name.