@ThreadSafe public interface NameFactory extends ValueFactory<Name>
names
.Modifier and Type | Interface and Description |
---|---|
static interface |
NameFactory.Holder |
DEFAULT_DECODER, DEFAULT_ENCODER
Modifier and Type | Method and Description |
---|---|
Name |
create(String namespaceUri,
String localName)
Create a name from the given namespace URI and local name.
|
Name |
create(String namespaceUri,
String localName,
TextDecoder decoder)
Create a name from the given namespace URI and local name.
|
NamespaceRegistry |
getNamespaceRegistry()
Get the namespace registry.
|
NameFactory |
with(NamespaceRegistry.Holder namespaceRegistryHolder)
Return a potentially new copy of this factory that uses the supplied
NamespaceRegistry.Holder object. |
NameFactory |
with(ValueFactories valueFactories)
Return a potentially new copy of this factory that uses the supplied ValueFactories object.
|
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createEmptyArray, getPropertyType
NameFactory with(ValueFactories valueFactories)
ValueFactory
with
in interface ValueFactory<Name>
valueFactories
- the value factories object; may not be nullNameFactory with(NamespaceRegistry.Holder namespaceRegistryHolder)
NamespaceRegistry.Holder
object.namespaceRegistryHolder
- the holder of the namespace registry; may not be nullName create(String namespaceUri, String localName)
This method is equivalent to calling create(String, String, TextDecoder)
with a null encoder.
namespaceUri
- the namespace URIlocalName
- the local nameIllegalArgumentException
- if the local name is null
or emptyName create(String namespaceUri, String localName, TextDecoder decoder)
namespaceUri
- the namespace URIlocalName
- the local namedecoder
- the decoder that should be used to decode the qualified nameIllegalArgumentException
- if the local name is null
or emptyNamespaceRegistry getNamespaceRegistry()
null
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.