public class NameFactoryLogger extends AbstractLogger implements NameFactory
NameFactory
.Constructor and Description |
---|
NameFactoryLogger(NameFactory nameFactory,
LogWriter writer)
Create a new instance for the given
nameFactory which uses
writer for persisting log messages. |
Modifier and Type | Method and Description |
---|---|
Name |
create(java.lang.String nameString)
Returns a
Name holding the value of the specified
string. |
Name |
create(java.lang.String namespaceURI,
java.lang.String localName)
Returns a
Name with the given namespace URI and
local part and validates the given parameters. |
NameFactory |
getNameFactory() |
public NameFactoryLogger(NameFactory nameFactory, LogWriter writer)
nameFactory
which uses
writer
for persisting log messages.nameFactory
- writer
- public NameFactory getNameFactory()
public Name create(java.lang.String namespaceURI, java.lang.String localName)
NameFactory
Name
with the given namespace URI and
local part and validates the given parameters.create
in interface NameFactory
namespaceURI
- namespace urilocalName
- local partpublic Name create(java.lang.String nameString)
NameFactory
Name
holding the value of the specified
string. The string must be in the format returned by the
Name.toString()
method, i.e.
{namespaceURI}localName
create
in interface NameFactory
nameString
- a String
containing the Name
representation to be parsed.Name
represented by the argumentCopyright © 2010 - 2020 Adobe. All Rights Reserved