blob: 833cf0e7ae90e20e1c4a9883902ff3b4f4e8fb69 [file] [log] [blame]
package org.apache.tuscany.das.ldap.util;
import org.eclipse.emf.common.util.URI;
public class XSDNamespaceURITokenizer
{
public static String[] createAuthorityTokens( URI xsdNamespaceURI )
{
String authority = xsdNamespaceURI.authority();
String[] authorityTokens = authority.split( "[.]" );
return authorityTokens;
}
public static String[] createPathTokens(URI xsdNamespace)
{
String path = xsdNamespace.path();
if (path != null)
{
return path.split("[/]");
}
else
return null;
}
}