Class NameFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.name.NameFactoryImpl
-
- All Implemented Interfaces:
NameFactory
public class NameFactoryImpl extends Object implements NameFactory
NameFactoryImpl...
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Namecreate(String nameString)Returns aNameholding the value of the specified string.Namecreate(String namespaceURI, String localName)Returns aNamewith the given namespace URI and local part and validates the given parameters.static NameFactorygetInstance()
-
-
-
Method Detail
-
getInstance
public static NameFactory getInstance()
-
create
public Name create(String namespaceURI, String localName) throws IllegalArgumentException
Description copied from interface:NameFactoryReturns aNamewith the given namespace URI and local part and validates the given parameters.- Specified by:
createin interfaceNameFactory- Parameters:
namespaceURI- namespace urilocalName- local part- Throws:
IllegalArgumentException- ifnamespaceURIorlocalNameis invalid.- See Also:
NameFactory.create(String, String)
-
create
public Name create(String nameString) throws IllegalArgumentException
Description copied from interface:NameFactoryReturns aNameholding the value of the specified string. The string must be in the format returned by theName.toString()method, i.e.{namespaceURI}localName- Specified by:
createin interfaceNameFactory- Parameters:
nameString- aStringcontaining theNamerepresentation to be parsed.- Returns:
- the
Namerepresented by the argument - Throws:
IllegalArgumentException- if the specified string can not be parsed as aName.- See Also:
NameFactory.create(String)
-
-