Package org.apache.jackrabbit.spi
Interface NameFactory
-
- All Known Implementing Classes:
NameFactoryImpl,NameFactoryLogger
public interface NameFactoryNameFactory...
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
create
Name create(String namespaceURI, String localName) throws IllegalArgumentException
Returns aNamewith the given namespace URI and local part and validates the given parameters.- Parameters:
namespaceURI- namespace urilocalName- local part- Throws:
IllegalArgumentException- ifnamespaceURIorlocalNameis invalid.
-
create
Name create(String nameString) throws IllegalArgumentException
Returns aNameholding the value of the specified string. The string must be in the format returned by theName.toString()method, i.e.{namespaceURI}localName- 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.
-
-