Package org.apache.jackrabbit.spi
Interface NameFactory
-
- All Known Implementing Classes:
NameFactoryImpl
,NameFactoryLogger
public interface NameFactory
NameFactory
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Name
create(java.lang.String nameString)
Returns aName
holding the value of the specified string.Name
create(java.lang.String namespaceURI, java.lang.String localName)
Returns aName
with the given namespace URI and local part and validates the given parameters.
-
-
-
Method Detail
-
create
Name create(java.lang.String namespaceURI, java.lang.String localName) throws java.lang.IllegalArgumentException
Returns aName
with the given namespace URI and local part and validates the given parameters.- Parameters:
namespaceURI
- namespace urilocalName
- local part- Throws:
java.lang.IllegalArgumentException
- ifnamespaceURI
orlocalName
is invalid.
-
create
Name create(java.lang.String nameString) throws java.lang.IllegalArgumentException
Returns aName
holding the value of the specified string. The string must be in the format returned by theName.toString()
method, i.e.{namespaceURI}localName
- Parameters:
nameString
- aString
containing theName
representation to be parsed.- Returns:
- the
Name
represented by the argument - Throws:
java.lang.IllegalArgumentException
- if the specified string can not be parsed as aName
.
-
-