Examples of NamespaceService


Examples of org.alfresco.service.namespace.NamespaceService

  }

  @SuppressWarnings("unchecked")
  private String getPathFromSpaceRef(NodeRef ref, boolean children) {
    Path path = serviceRegistry.getNodeService().getPath(ref);
    NamespaceService ns = serviceRegistry.getNamespaceService();
    StringBuilder buf = new StringBuilder(64);
    for (int i = 0; i < path.size(); i++) {
      String elementString = "";
      Path.Element element = path.get(i);
      if (element instanceof Path.ChildAssocElement) {
        ChildAssociationRef elementRef = ((Path.ChildAssocElement) element).getRef();
        if (elementRef.getParentRef() != null) {
          Collection prefixes = ns.getPrefixes(elementRef.getQName().getNamespaceURI());
          if (prefixes.size() > 0) {
            elementString = '/' + (String) prefixes.iterator().next() + ':'
                + ISO9075.encode(elementRef.getQName().getLocalName());
          }
        }
View Full Code Here

Examples of org.alfresco.service.namespace.NamespaceService

  }

  @SuppressWarnings("unchecked")
  private String getPathFromSpaceRef(NodeRef ref, boolean children) {
    Path path = serviceRegistry.getNodeService().getPath(ref);
    NamespaceService ns = serviceRegistry.getNamespaceService();
    StringBuilder buf = new StringBuilder(64);
    for (int i = 0; i < path.size(); i++) {
      String elementString = "";
      Path.Element element = path.get(i);
      if (element instanceof Path.ChildAssocElement) {
        ChildAssociationRef elementRef = ((Path.ChildAssocElement) element).getRef();
        if (elementRef.getParentRef() != null) {
          Collection prefixes = ns.getPrefixes(elementRef.getQName().getNamespaceURI());
          if (prefixes.size() > 0) {
            elementString = '/' + (String) prefixes.iterator().next() + ':'
                + ISO9075.encode(elementRef.getQName().getLocalName());
          }
        }
View Full Code Here

Examples of org.alfresco.service.namespace.NamespaceService

  }

  @SuppressWarnings("unchecked")
  private String getPathFromSpaceRef(NodeRef ref, boolean children) {
    Path path = serviceRegistry.getNodeService().getPath(ref);
    NamespaceService ns = serviceRegistry.getNamespaceService();
    StringBuilder buf = new StringBuilder(64);
    for (int i = 0; i < path.size(); i++) {
      String elementString = "";
      Path.Element element = path.get(i);
      if (element instanceof Path.ChildAssocElement) {
        ChildAssociationRef elementRef = ((Path.ChildAssocElement) element).getRef();
        if (elementRef.getParentRef() != null) {
          Collection prefixes = ns.getPrefixes(elementRef.getQName().getNamespaceURI());
          if (prefixes.size() > 0) {
            elementString = '/' + (String) prefixes.iterator().next() + ':'
                + ISO9075.encode(elementRef.getQName().getLocalName());
          }
        }
View Full Code Here

Examples of org.openbel.framework.core.namespace.NamespaceService

        final BELValidatorService belValidator = new BELValidatorServiceImpl();
        final BELConverterService belConverter = new BELConverterServiceImpl();
        final NamespaceIndexerService nsindexer =
                new NamespaceIndexerServiceImpl();
        final CacheLookupService cacheLookup = new DefaultCacheLookupService();
        final NamespaceService nsService = new DefaultNamespaceService(
                cache, cacheLookup, nsindexer);
        final SemanticService semantics = new SemanticServiceImpl(nsService);
        final ExpansionService expansion = new ExpansionServiceImpl();
        final AnnotationService annotationService =
                new DefaultAnnotationService();
View Full Code Here

Examples of org.openbel.framework.core.namespace.NamespaceService

        final NamespaceIndexerService nsindexer =
                new NamespaceIndexerServiceImpl();
        final CacheableResourceService cache =
                new DefaultCacheableResourceService();
        final CacheLookupService cacheLookup = new DefaultCacheLookupService();
        final NamespaceService nsService = new DefaultNamespaceService(
                cache, cacheLookup, nsindexer);
        final ProtoNetworkService protonetService =
                new ProtoNetworkServiceImpl();
        final SemanticService semantics = new SemanticServiceImpl(nsService);
        final ExpansionService expansion = new ExpansionServiceImpl();
View Full Code Here

Examples of org.openbel.framework.core.namespace.NamespaceService

        config = getSystemConfiguration();
        cacheLookupService = new DefaultCacheLookupService();
        cacheService = new DefaultCacheableResourceService();
        final NamespaceIndexerService nsindexer =
                new NamespaceIndexerServiceImpl();
        final NamespaceService namespace = new DefaultNamespaceService(
                cacheService, cacheLookupService, nsindexer);
        cacheMgrService = new DefaultCacheManagerService(
                cacheLookupService, namespace, getReportable());

        Option[] options = getOptions();
View Full Code Here

Examples of org.openbel.framework.core.namespace.NamespaceService

        final CacheLookupService cacheLookup = new DefaultCacheLookupService();
        annoDefService = new DefaultAnnotationDefinitionService(
                cache, cacheLookup);
        final NamespaceIndexerService nsindexer =
                new NamespaceIndexerServiceImpl();
        final NamespaceService nsService = new DefaultNamespaceService(
                cache, cacheLookup, nsindexer);
        final SemanticService semantics = new SemanticServiceImpl(nsService);
        final AnnotationService annotationService =
                new DefaultAnnotationService();
        validationService = new DefaultValidationService(
View Full Code Here

Examples of org.openbel.framework.core.namespace.NamespaceService

     */
    @BeforeClass
    public static void createProtoNetwork() {
        final CacheableResourceService crs = new DefaultCacheableResourceService();
        final CacheLookupService cls = new DefaultCacheLookupService();
        final NamespaceService nss = new DefaultNamespaceService( crs, cls,
                new NamespaceIndexerServiceImpl());

        final DefaultPhaseOne p1;
        try {
            p1 = new PhaseOneImpl(
View Full Code Here

Examples of org.openbel.framework.core.namespace.NamespaceService

        final NamespaceIndexerService nsindexer =
                new NamespaceIndexerServiceImpl();
        final CacheableResourceService cache =
                new DefaultCacheableResourceService();
        final CacheLookupService cacheLookup = new DefaultCacheLookupService();
        final NamespaceService nsService = new DefaultNamespaceService(
                cache, cacheLookup, nsindexer);
        final ProtoNetworkService protonetService =
                new ProtoNetworkServiceImpl();
        final SemanticService semantics = new SemanticServiceImpl(nsService);
        final ExpansionService expansion = new ExpansionServiceImpl();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.