public class DefaultTagDescription extends Object implements TagDescription, Cloneable
Constructor and Description |
---|
DefaultTagDescription()
A default-constructor.
|
DefaultTagDescription(Configuration conf,
String prefix)
Creates and configures a new TagDescription collection.
|
Modifier and Type | Method and Description |
---|---|
DefaultTagDescription |
clone() |
void |
configure(Configuration conf,
String prefix)
Configures this factory from the given configuration using the speoified prefix as filter.
|
String |
getDefaultNamespace() |
boolean |
hasCData(String namespace,
String tagname)
Queries the defined tag-descriptions whether the given tag and namespace is defined to allow character-data.
|
void |
setDefaultNamespace(String defaultNamespace) |
void |
setElementHasCData(String tagName,
boolean hasCData)
Adds a configuration entry for the given namespace and tag-name to the tag-descriptions.
|
void |
setElementHasCData(String namespaceUri,
String tagName,
boolean hasCData)
Adds a configuration entry for the given namespace and tag-name to the tag-descriptions.
|
void |
setNamespaceHasCData(String namespaceUri,
boolean hasCData)
Adds a configuration default for the given namespace to the tag-descriptions.
|
public DefaultTagDescription()
public DefaultTagDescription(Configuration conf, String prefix)
conf
- the configuration.prefix
- the key-prefix.configure(Configuration, String)
public void configure(Configuration conf, String prefix)
conf
- the configuration.prefix
- the key-prefix.public void setNamespaceHasCData(String namespaceUri, boolean hasCData)
namespaceUri
- the namespace URI for which a default should be configured.hasCData
- the default value.public void setElementHasCData(String namespaceUri, String tagName, boolean hasCData)
namespaceUri
- the namespace URI for which a default should be configured.tagName
- the tagname for which the entry should be added.hasCData
- the default value.public void setElementHasCData(String tagName, boolean hasCData)
tagName
- the tagname for which the entry should be added.hasCData
- the default value.public void setDefaultNamespace(String defaultNamespace)
public String getDefaultNamespace()
public boolean hasCData(String namespace, String tagname)
hasCData
in interface TagDescription
namespace
- the namespace.tagname
- the xml-tagname.public DefaultTagDescription clone()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.