Package java.util

Examples of java.util.Properties.containsKey()


    public void testNillableNode() {
        MappingDocument doc = FakeXMLMetadata.docWithExcluded();
        MappingElement root = (MappingElement)doc.getRootNode();
       
        Properties names = root.getNamespacesAsProperties();
        assertFalse(names.containsKey("xsi"));//$NON-NLS-1$
       
        HandleNillableVisitor.execute(doc);
       
        names = root.getNamespacesAsProperties();
        assertTrue(names.containsKey("xsi"));//$NON-NLS-1$
View Full Code Here


        assertFalse(names.containsKey("xsi"));//$NON-NLS-1$
       
        HandleNillableVisitor.execute(doc);
       
        names = root.getNamespacesAsProperties();
        assertTrue(names.containsKey("xsi"));//$NON-NLS-1$
    }
}
View Full Code Here

                throw new IllegalArgumentException("Second argument to HopObject.definePrototype() must be Object");
            }

            Scriptable desc = (Scriptable) args[0];
            Properties childmapping = core.scriptableToProperties(desc);
            if (!childmapping.containsKey("collection")) {
                // if contained type isn't defined explicitly limit collection to our own type
                childmapping.put("collection", HopObjectCtor.this.getFunctionName());
            }

            Properties props = new Properties();
View Full Code Here

     
       
      } else {
        // append new label to existing file
        Properties labelProperties = loadLabel(labelFile);
        if (!labelProperties.containsKey(key)) {
          writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(labelFile.getLocation().toFile(), true), "8859_1"));
          if(labelProperties.entrySet().size()>0){
            writer.newLine();
          }         
          writer.write(LabelFileEncodingHelper.saveConvert(key, true));
View Full Code Here

    builder = builder.addEntryExit(true);

    if (agentArgument != null) {
      Properties args = parseArguments(agentArgument, ",");

      if (args.containsKey(AgentOptions.VERBOSE)) {
        builder = builder.verbose(true);
      }

      if (args.containsKey(AgentOptions.TIME)) {
        printStartStopTimes();
View Full Code Here

      if (args.containsKey(AgentOptions.VERBOSE)) {
        builder = builder.verbose(true);
      }

      if (args.containsKey(AgentOptions.TIME)) {
        printStartStopTimes();
      }

      if (args.containsKey(AgentOptions.IGNORE)) {
        String ignore = args.getProperty(AgentOptions.IGNORE);
View Full Code Here

      if (args.containsKey(AgentOptions.TIME)) {
        printStartStopTimes();
      }

      if (args.containsKey(AgentOptions.IGNORE)) {
        String ignore = args.getProperty(AgentOptions.IGNORE);
        builder = builder.ignore(ignore.split(":"));
      }

      if (args.containsKey(AgentOptions.LEVEL)) {
View Full Code Here

      if (args.containsKey(AgentOptions.IGNORE)) {
        String ignore = args.getProperty(AgentOptions.IGNORE);
        builder = builder.ignore(ignore.split(":"));
      }

      if (args.containsKey(AgentOptions.LEVEL)) {
        builder = builder.level(args.getProperty(AgentOptions.LEVEL));
      }
    }

    instrumentation.addTransformer(builder.build());
View Full Code Here

            // get the first visual node on the document.
            MappingElement rootElement = doc.getTagRootElement();
           
            Properties namespaces = rootElement.getNamespacesAsProperties();
            if (namespaces == null || !namespaces.containsKey(MappingNodeConstants.INSTANCES_NAMESPACE_PREFIX)) {
                rootElement.addNamespace(new Namespace(MappingNodeConstants.INSTANCES_NAMESPACE_PREFIX, MappingNodeConstants.INSTANCES_NAMESPACE));
            }
           
            // now exit; we are done
            setAbort(true);
View Full Code Here

  @Test public void testSocketServerConnection_PropertiesClientHost() throws Throwable {
    Properties p = new Properties();
   
    SocketServerConnectionFactory.updateConnectionProperties(p);
      
    assertTrue(p.containsKey(TeiidURL.CONNECTION.CLIENT_HOSTNAME));
    assertTrue(p.containsKey(TeiidURL.CONNECTION.CLIENT_IP_ADDRESS));
  }
 
  @Test public void testLogonFailsWithMultipleHosts() throws Exception {
    Properties p = new Properties();
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.