public class NameFactoryImpl extends java.lang.Object implements NameFactory
NameFactoryImpl
...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. |
static NameFactory |
getInstance() |
public static NameFactory getInstance()
public Name create(java.lang.String namespaceURI, java.lang.String localName) throws java.lang.IllegalArgumentException
NameFactory
Name
with the given namespace URI and
local part and validates the given parameters.create
in interface NameFactory
namespaceURI
- namespace urilocalName
- local partjava.lang.IllegalArgumentException
- if namespaceURI
or
localName
is invalid.NameFactory.create(String, String)
public Name create(java.lang.String nameString) throws java.lang.IllegalArgumentException
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 argumentjava.lang.IllegalArgumentException
- if the specified string can not be parsed
as a Name
.NameFactory.create(String)
Copyright © 2010 - 2020 Adobe. All Rights Reserved