org.apache.jackrabbit.spi.commons.name
Class NameFactoryImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.name.NameFactoryImpl
All Implemented Interfaces:
NameFactory

public class NameFactoryImpl
extends Object
implements NameFactory

NameFactoryImpl...


Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NameFactory getInstance()

create

public Name create(String namespaceURI,
                   String localName)
            throws IllegalArgumentException
Description copied from interface: NameFactory
Returns a Name with the given namespace URI and local part and validates the given parameters.

Specified by:
create in interface NameFactory
Parameters:
namespaceURI - namespace uri
localName - local part
Throws:
IllegalArgumentException - if namespaceURI or localName is invalid.
See Also:
NameFactory.create(String, String)

create

public Name create(String nameString)
            throws IllegalArgumentException
Description copied from interface: NameFactory
Returns a 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

Specified by:
create in interface NameFactory
Parameters:
nameString - a String containing the Name representation to be parsed.
Returns:
the Name represented by the argument
Throws:
IllegalArgumentException - if the specified string can not be parsed as a Name.
See Also:
NameFactory.create(String)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.