Examples of attribute()


Examples of org.integratedmodelling.riskwiz.learning.data.Instances.attribute()

            m_DataBaseConnection.disconnectFromDatabase();
            // get rid of m_idColumn
            if (m_DataBaseConnection.getUpperCase()) {
                m_idColumn = m_idColumn.toUpperCase();
            }
            if (result.attribute(0).name().equals(m_idColumn)) {
                result.deleteAttributeAt(0);
            }
            m_structure = new Instances(result, 0);
        } catch (Exception ex) {
            printException(ex);
View Full Code Here

Examples of org.jboss.forge.parser.xml.Node.attribute()

      moduleXml.delete();
      moduleXml.createNewFile();

      // <resource-root path="maven-dependency.jar" />
      Node module = XMLParser.parse(getClass().getResourceAsStream(MODULE_TEMPLATE_XML));
      module.attribute("name", pluginName);
      module.attribute("slot", pluginSlot);
      Node resources = module.getSingle("resources");

      resources.createChild("resource-root").attribute("path", dep.getArtifactId() + ".jar");
View Full Code Here

Examples of org.jboss.forge.parser.xml.query.Pattern.attribute()

            if (nameValue.length != 2)
            {
               throw new IllegalArgumentException("Attribute without name or value found: " + attr + " in expression: "
                        + queryExpression);
            }
            pattern.attribute(nameValue[0], nameValue[1]);
         }
         patterns.add(pattern);
      }
      return patterns.toArray(ARRAY_CAST);
   }
View Full Code Here

Examples of org.jboss.shrinkwrap.descriptor.spi.Node.attribute()

         if ("module.xml".equals(resource.getName()))
         {
            Node module = XMLParser.parse(resource.getResourceInputStream());
            if (module != null)
            {
               String pluginName = module.attribute("name");
               String pluginSlot = module.attribute("slot");
               if (pluginSlot == null)
               {
                  pluginSlot = "";
               }
View Full Code Here

Examples of org.jboss.test.kernel.deployment.xml.support.AnnotationWithAttribute.attribute()

      AbstractAnnotationMetaData annotation = getAnnotation("AnnotationWithAttribute.xml");
      Annotation ann = annotation.getAnnotationInstance();
      assertEquals(AnnotationWithAttribute.class.getName(), ann.annotationType().getName());
      assertTrue(ann instanceof AnnotationWithAttribute);
      AnnotationWithAttribute ann1 = (AnnotationWithAttribute)ann;
      assertNotNull(ann1.attribute());
      assertEquals(Long.class, ann1.attribute());
   }
  
   public void testAnnotationWithAttributes() throws Exception
   {
View Full Code Here

Examples of org.jboss.xb.binding.sunday.unmarshalling.AttributeHandler.attribute()

         {
            AttributeHandler handler = binding.getHandler();
            if(handler != null)
            {
               Object value = handler.unmarshal(elementName, attrName, binding, nsCtx, attrs.getValue(i));
               handler.attribute(elementName, attrName, binding, o, value);
            }
            else
            {
               throw new JBossXBRuntimeException(
                  "Attribute binding present but has no handler: element=" + elementName + ", attrinute=" + attrName
View Full Code Here

Examples of org.jdom.input.DefaultJDOMFactory.attribute()

     */
    public void testFormatAttributes() {
        JDOMFactory factory = new DefaultJDOMFactory();
        Attribute attr;
        List attributes = new ArrayList();
        attr = factory.attribute("device", "PC");
        attributes.add(attr);
        attr = factory.attribute("pixelsX", "100");
        attributes.add(attr);
        attr = factory.attribute("pixelsY", "200");
        attributes.add(attr);
View Full Code Here

Examples of org.jdom.input.JDOMFactory.attribute()

     */
    public void testFormatAttributes() {
        JDOMFactory factory = new DefaultJDOMFactory();
        Attribute attr;
        List attributes = new ArrayList();
        attr = factory.attribute("device", "PC");
        attributes.add(attr);
        attr = factory.attribute("pixelsX", "100");
        attributes.add(attr);
        attr = factory.attribute("pixelsY", "200");
        attributes.add(attr);
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.attribute()

            // generate the element start tag
            MarshallingContext ctx = (MarshallingContext)ictx;
            ctx.startTagAttributes(m_index, m_name);
           
            // add attribute reference to object ID
            ctx.attribute(0, getAttributeName(), getIdValue(obj));
           
            // close start tag for empty element
            ctx.closeStartEmpty();
        }
    }
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.attribute()

                Object value = entry.getValue();
                if (value != null) {
                   
                    // write element with key attribute
                    ctx.startTagAttributes(m_index, ENTRY_ELEMENT_NAME);
                    ctx.attribute(m_index, KEY_ATTRIBUTE_NAME,
                        entry.getKey().toString());
                   
                    // translate value object class to schema type
                    String tname = value.getClass().getName();
                    int type = s_javaTypesEnum.getValue(tname);
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.