public class NameFactoryImpl extends Object implements NameFactory
NameFactoryImpl...| Modifier and Type | Method and Description |
|---|---|
Name |
create(String nameString)
Returns a
Name holding the value of the specified
string. |
Name |
create(String namespaceURI,
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(String namespaceURI, String localName) throws IllegalArgumentException
NameFactoryName with the given namespace URI and
local part and validates the given parameters.create in interface NameFactorynamespaceURI - namespace urilocalName - local partIllegalArgumentException - if namespaceURI or
localName is invalid.NameFactory.create(String, String)public Name create(String nameString) throws IllegalArgumentException
NameFactoryName 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 NameFactorynameString - a String containing the Name
representation to be parsed.Name represented by the argumentIllegalArgumentException - if the specified string can not be parsed
as a Name.NameFactory.create(String)Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.