ModeShape Distribution 3.2.0.Final

org.modeshape.jcr.api
Interface Namespaced

All Known Implementing Classes:
JcrSystemNode

public interface Namespaced

An orthogonal interface that defines methods to obtain the local part and namespace URI of an object that has a namespaced name.


Method Summary
 String getLocalName()
          Return the local part of the object's name.
 String getNamespaceURI()
          Returns the URI in which this object's name is scoped.
 

Method Detail

getLocalName

String getLocalName()
                    throws RepositoryException
Return the local part of the object's name.

Returns:
the local part of the name, or an empty string if this Item is the root node of the workspace.
Throws:
RepositoryException - if an error occurs.

getNamespaceURI

String getNamespaceURI()
                       throws RepositoryException
Returns the URI in which this object's name is scoped. For example, if this object's JCR name is "jcr:primaryType", the namespace prefix used in the name is "jcr", and so this method would return the "http://www.jcp.org/jcr/1.0" URI.

Returns:
the URI of the namespace, or an empty string if the name does not use a namespace
Throws:
RepositoryException - if an error occurs.

ModeShape Distribution 3.2.0.Final

Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.