Package org.apache.stanbol.commons.namespaceprefix

Examples of org.apache.stanbol.commons.namespaceprefix.NamespacePrefixProvider


            mappingsLock.readLock().unlock();
        }
        if(namespace == null){
            ServiceReference[] refs = getSortedProviderReferences();
            for(int i=0;namespace == null && i<refs.length;i++){
                NamespacePrefixProvider provider = getService(refs[i]);
                if(provider != null){
                    namespace = provider.getNamespace(prefix);
                }
            }
        }
        return namespace;
    }
View Full Code Here


            mappingsLock.readLock().unlock();
        }
        if(prefixes == null){
            ServiceReference[] refs = getSortedProviderReferences();
            for(int i=0;prefixes == null && i<refs.length;i++){
                NamespacePrefixProvider provider = getService(refs[i]);
                if(provider != null){
                    prefixes = provider.getPrefixes(namespace);
                }
            }
        }
        return prefixes == null ? Collections.EMPTY_LIST:prefixes;
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.commons.namespaceprefix.NamespacePrefixProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.