public static class SchemaConfig.Profile
extends java.lang.Object
<profile>
tag is defined inside <schema>
tag, all
<namespace>
-s at that level form a single unnamed profile.Modifier and Type | Field and Description |
---|---|
private boolean |
isDefault
Flags this profile to be used by default.
|
private java.lang.String |
name
The name of the profile.
|
private java.util.Map<java.lang.String,SchemaConfig.NsConfig> |
nsConfigs
The map of namespaces in this profile .
|
Constructor and Description |
---|
Profile()
Default constructor.
|
Profile(java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addNamespace(SchemaConfig.NsConfig cfg)
Add a namespace configuration object to this profile.
|
java.lang.String |
getName()
Obtain the name of the profile.
|
private void |
prepareStandardNamespace()
Prepare the default "standard" namespace with default values.
|
void |
setDefault(boolean isDefault)
Flags the profile as being the default.
|
void |
setName(java.lang.String name)
Sets the name of this profile.
|
private java.lang.String name
private boolean isDefault
private final java.util.Map<java.lang.String,SchemaConfig.NsConfig> nsConfigs
public Profile()
public Profile(java.lang.String name)
name
- The root name of the profile.public void setName(java.lang.String name)
name
- The name of the profile.public void setDefault(boolean isDefault)
isDefault
- The new value for default
flag of this profile.public java.lang.String getName()
public void addNamespace(SchemaConfig.NsConfig cfg)
cfg
- Namespace configuration object.private void prepareStandardNamespace()