|
ModeShape Distribution 3.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ThreadSafe public interface NameFactory
A factory for creating names
.
Nested Class Summary | |
---|---|
static interface |
NameFactory.Holder
|
Field Summary |
---|
Fields inherited from interface org.modeshape.jcr.value.ValueFactory |
---|
DEFAULT_DECODER, DEFAULT_ENCODER |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.modeshape.jcr.value.ValueFactory |
---|
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, getPropertyType |
Method Detail |
---|
NameFactory with(ValueFactories valueFactories)
ValueFactory
with
in interface ValueFactory<Name>
valueFactories
- the value factories object; may not be null
NameFactory with(NamespaceRegistry.Holder namespaceRegistryHolder)
NamespaceRegistry.Holder
object.
namespaceRegistryHolder
- the holder of the namespace registry; may not be null
Name 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 name
IllegalArgumentException
- 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 name
IllegalArgumentException
- if the local name is null
or emptyNamespaceRegistry getNamespaceRegistry()
null
|
ModeShape Distribution 3.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |