Package org.jboss.shrinkwrap.descriptor.spi

Examples of org.jboss.shrinkwrap.descriptor.spi.Node


   private Node container;
  
   // test only
   public ContainerDefImpl(String descirptorName)
   {
      this(descirptorName, new Node("arquillian"));
   }
View Full Code Here


    * @see org.jboss.arquillian.impl.configuration.api.ContainerDef#getProperties()
    */
   @Override
   public Map<String, String> getContainerProperties()
   {
      Node props = container.getSingle("configuration");
      Map<String, String> properties = new HashMap<String, String>();
     
      if(props != null)
      {
         for(Node prop: props.get("property"))
         {
            properties.put(prop.getAttribute("name"), prop.getText());
         }
      }
      return properties;
View Full Code Here

   private Node extension;

   // test only
   public ExtensionDefImpl(String descirptorName)
   {
      this(descirptorName, new Node("arquillian"));
   }
View Full Code Here

      return null;
   }

   private String getTextIfExists(Pattern... pattern)
   {
      Node propery = engine.getSingle(pattern);
      if(propery != null)
      {
         return propery.getText();
      }
      return null;
   }
View Full Code Here

   // Constructor ------------------------------------------------------------------------||
   //-------------------------------------------------------------------------------------||

   public ArquillianDescriptorImpl(String descirptorName)
   {
      this(descirptorName, new Node("arquillian")
         .attribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance")
         .attribute("xmlns", "http://jboss.org/schema/arquillian")
         .attribute("xsi:schemaLocation", "http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"));
   }
View Full Code Here

   private Node container;
  
   // test only
   public ContainerDefImpl(String descirptorName)
   {
      this(descirptorName, new Node("arquillian"));
   }
View Full Code Here

    * @see org.jboss.arquillian.impl.configuration.api.ContainerDef#getProperties()
    */
   @Override
   public Map<String, String> getContainerProperties()
   {
      Node props = container.getSingle("configuration");
      Map<String, String> properties = new HashMap<String, String>();
     
      if(props != null)
      {
         for(Node prop: props.get("property"))
         {
            properties.put(prop.attribute("name"), prop.text());
         }
      }
      return properties;
View Full Code Here

   private Node extension;

   // test only
   public ExtensionDefImpl(String descirptorName)
   {
      this(descirptorName, new Node("arquillian"));
   }
View Full Code Here

{
    private final Node model;

    public ValidationDescriptorImpl(String descriptorName)
    {
        this(descriptorName, new Node("validation-config")
                .attribute("xmlns", "http://jboss.org/xml/ns/javax/validation/configuration")
                .attribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"));
    }
View Full Code Here

    }

    @Override
    public String getDefaultProvider()
    {
        final Node defaultProvider = model.getSingle("default-provider");
        return defaultProvider == null ? null : defaultProvider.text();
    }
View Full Code Here

TOP

Related Classes of org.jboss.shrinkwrap.descriptor.spi.Node

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.