Examples of EntryDescriptor


Examples of eu.admire.registry.generic.EntryDescriptor

        "http://localhost:8081/dai/services/");

    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
    mEntryDescriptor = new EntryDescriptor(originalName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "containsConnection";
    Set<String> values1;
    values1 = new HashSet<String>();
View Full Code Here

Examples of eu.admire.registry.generic.EntryDescriptor

    registry = new SimpleRDFProcessingElementRegistry(
        "http://localhost:8081/dai/services/");
    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
    mEntryDescriptor = new EntryDescriptor(originalName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "containsConnection";
    Set<String> values1;
    values1 = new HashSet<String>();
View Full Code Here

Examples of eu.admire.registry.generic.EntryDescriptor

        "http://localhost:8081/dai/services/");

    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
    mEntryDescriptor = new EntryDescriptor(originalName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "containsConnection";
    Set<String> values1;
    values1 = new HashSet<String>();
View Full Code Here

Examples of eu.admire.registry.generic.EntryDescriptor

  // @Override
  public List<ProcessingElementDescriptor> getProcessingElementMetadata(
      String processingElementName, Collection<String> metadataList) {

    EntryDescriptor entryDescriptor = new EntryDescriptor(
        processingElementName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "title";
    Set<String> values1;
    values1 = new HashSet<String>();
    values1.add(processingElementName);
    elementDescriptor.put(property1, values1);
    entryDescriptor.setDescriptor(elementDescriptor);

    return null;
  }
View Full Code Here

Examples of eu.admire.registry.generic.EntryDescriptor

        }
      }
      List<List<String>> results = query.queryEntryDescriptor(
          entryDescriptor, matchFully);
      for (List<String> result : results) {
        EntryDescriptor descriptor = new EntryDescriptor(result.get(0));
        if (result.get(0).contains("#")) {
          descriptor.setId(result.get(0).substring(
              result.get(0).indexOf('#') + 1));
        }
        descriptor.setName(result.get(1));
        if (result.get(1).contains("#")) {
          descriptor.setLocation(new URI(result.get(2).substring(
              result.get(2).indexOf('#') + 1)));
        } else {
          if (result.get(2) != null) {
            descriptor.setLocation(new URI(result.get(2)));
          } else {
            descriptor.setLocation(null);
          }

        }
        descriptor.setDescriptor(entryDescriptor.getDescriptor());
        listProcessingElementDescriptor.add(descriptor);
      }
      if (results.size() > 0) {
        LOG.debug("Found processing elements ");
      } else {
View Full Code Here

Examples of eu.admire.registry.generic.EntryDescriptor

  }

  public List<EntryDescriptor> deleteProcessingElement(
      ProcessingElementDescriptor pe) throws DeleteFailedException {

    EntryDescriptor entryDescriptor = new EntryDescriptor(pe
        .getProcessingElementId());
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "<http://purl.org/dc/elements/1.1/title>";
    Set<String> values1;
    values1 = new HashSet<String>();
    values1.add("\"" + pe.getName() + "\"");
    elementDescriptor.put(property1, values1);
    entryDescriptor.setDescriptor(elementDescriptor);
    List<EntryDescriptor> retrievedPE = super
        .deleteEntryDescriptor(entryDescriptor);

    return retrievedPE;
  }
View Full Code Here

Examples of eu.admire.registry.generic.EntryDescriptor

  @Override
  public List<EntryDescriptor> deleteSType(String name)
      throws DeleteFailedException {
    List<EntryDescriptor> nonDeleted;
    EntryDescriptor entryDescriptor = new EntryDescriptor(name);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "<http://purl.org/dc/elements/1.1/title>";
    Set<String> values1;
    values1 = new HashSet<String>();
    values1.add(name);
    elementDescriptor.put(property1, values1);
    entryDescriptor.setDescriptor(elementDescriptor);
    nonDeleted = this.deleteEntryDescriptor(entryDescriptor);
    return nonDeleted;
  }
View Full Code Here

Examples of org.apache.avalon.meta.info.EntryDescriptor

    public void testJoin()
    {
        ContextDescriptor desc = (ContextDescriptor) getDescriptor();
        EntryDescriptor[] good = new EntryDescriptor[]{
            new EntryDescriptor( "key", String.class.getName() ),
            new EntryDescriptor( "no conflict", String.class.getName() )
        };
        EntryDescriptor[] bad = new EntryDescriptor[]{
            new EntryDescriptor( "key", Integer.class.getName() )
        };

        checkDescriptor( desc );
        EntryDescriptor[] merged = desc.merge( good );
        checkDescriptor( desc );
View Full Code Here

Examples of org.apache.avalon.meta.info.EntryDescriptor

    public void setUp()
    {
        m_classname = "org.apache.avalon.playground.MyContext";
        m_entries = new EntryDescriptor[]{
            new EntryDescriptor( "key", String.class.getName() )
        };
    }
View Full Code Here

Examples of org.apache.avalon.meta.info.EntryDescriptor

        final String entryType = getNamedParameter( tag, TYPE_PARAM, "java.lang.String" );
        final String optional = getNamedParameter( tag, OPTIONAL_PARAM, "false" );
        final boolean isOptional = "true".equals( optional );
        final String volatileValue = getNamedParameter( tag, VOLATILE_PARAM, "false" );
        final boolean isVolatile = "true".equals( volatileValue );
        return new EntryDescriptor( key, entryType, isOptional, isVolatile, alias );
    }
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.