Examples of addProperty()


Examples of org.eclipse.persistence.internal.oxm.schema.SchemaModelGeneratorProperties.addProperty()

            oxProjectClone.setLogin(xmlLogin);
            oxProjectClone.createDatabaseSession(); // initialize reference descriptors
            SchemaModelGenerator schemaGenerator = new SchemaModelGenerator();
            SchemaModelGeneratorProperties sgProperties = new SchemaModelGeneratorProperties();
            // set element form default to qualified for target namespace
            sgProperties.addProperty(getTargetNamespace(), ELEMENT_FORM_QUALIFIED_KEY, true);
            Map<String, Schema> schemaMap = schemaGenerator.generateSchemas(descriptorsToProcess, sgProperties);
            Schema s = schemaMap.get(getTargetNamespace());
            // check existing schema for any top-level ComplexTypes
            if (schema != null && s != null) {
                Map<String, ComplexType> topLevelComplexTypes = schema.getTopLevelComplexTypes();

Examples of org.encog.parse.tags.write.WriteXML.addProperty()

    WriteXML xml = new WriteXML(os);
    xml.beginDocument();
    xml.addAttribute("VERSION", "0.3");
    xml.beginTag("BIF");
    xml.beginTag("NETWORK");
    xml.addProperty("NAME", "Bayes Network, Generated by Encog");
    // write variables
    for (BayesianEvent event : network.getEvents()) {
      xml.addAttribute("TYPE", "nature");
      xml.beginTag("VARIABLE");
      xml.addProperty("NAME", event.getLabel());

Examples of org.exoplatform.management.spi.ManagedTypeMetaData.addProperty()

            throw new IllegalArgumentException("The same property was declared twice old=" + previousManagedProperty
                     + " new=" + managedProperty);
         }

         //
         managedType.addProperty(managedProperty);
      }

      //
      return managedType;
   }

Examples of org.exoplatform.services.jcr.cluster.JCRWebdavConnection.addProperty()

      JCRWebdavConnection conn = getConnection();
     
      String property = "D:testProp";
     
      conn.addNode(nodeName, "nt:untstructured","".getBytes());
      conn.addProperty(nodeName, property);
     
      // check is property exist
      for (JCRWebdavConnection connection : getConnections())
      {
         HTTPResponse response = connection.getProperty(nodeName, property);

Examples of org.farng.mp3.object.ObjectGroupRepeated.addProperty()

    }

    protected void setupObjectList() {
        appendToObjectList(new ObjectNumberHashMap("Time Stamp Format", 1));
        final ObjectGroupRepeated group = new ObjectGroupRepeated("Data");
        group.addProperty(new ObjectNumberHashMap("Type Of Event", 1));
        group.addProperty(new ObjectNumberFixedLength("Time Stamp", 4));
        appendToObjectList(group);
    }
}

Examples of org.foray.fotree.PropertyList.addProperty()

        final FlowNameSpecifier flowNameSpecifier = new FlowNameSpecifier(
                sourceList, propertyList);
        sourceList.addChild(flowNameSpecifier);
        Property property = new PdFlowNameReference(flowNameSpecifier,
                    FoProperty.FLOW_NAME_REFERENCE.toXslFo(), impliedName);
        propertyList.addProperty(flowNameSpecifier, property);

        /* The target part. */
        final FlowTargetList targetList = new FlowTargetList(assignment,
                PropertyList.emptyPropertyList());
        assignment.addChild(targetList);

Examples of org.freerealm.resource.bonus.BonusResourceImpl.addProperty()

        bonusResourceImpl.setName(XMLConverterUtility.findNode(node, "name").getFirstChild().getNodeValue());
        Node propertiesNode = XMLConverterUtility.findNode(node, "properties");
        for (Node propertyNode = propertiesNode.getFirstChild(); propertyNode != null; propertyNode = propertyNode.getNextSibling()) {
            if (propertyNode.getNodeType() == Node.ELEMENT_NODE) {
                Property property = PropertyFactory.createProperty(realm, propertyNode);
                bonusResourceImpl.addProperty(property);
            }
        }
        return bonusResourceImpl;
    }
}

Examples of org.freerealm.settlement.improvement.SettlementImprovementTypeImpl.addProperty()

            if (subNode.getNodeType() == Node.ELEMENT_NODE) {
                if (subNode.getNodeName().equals("Properties")) {
                    for (Node propertyNode = subNode.getFirstChild(); propertyNode != null; propertyNode = propertyNode.getNextSibling()) {
                        if (propertyNode.getNodeType() == Node.ELEMENT_NODE) {
                            Property property = PropertyFactory.createProperty(realm, propertyNode);
                            cityImprovement.addProperty(property);
                        }
                    }
                }
            }
        }

Examples of org.freerealm.tile.improvement.TileImprovementTypeImpl.addProperty()

        }
        Node propertiesNode = XMLConverterUtility.findNode(node, "properties");
        for (Node propertyNode = propertiesNode.getFirstChild(); propertyNode != null; propertyNode = propertyNode.getNextSibling()) {
            if (propertyNode.getNodeType() == Node.ELEMENT_NODE) {
                Property property = PropertyFactory.createProperty(realm, propertyNode);
                tileImprovementType.addProperty(property);
            }
        }
        return tileImprovementType;
    }

Examples of org.freerealm.vegetation.VegetationImpl.addProperty()

        }
        Node propertiesNode = XMLConverterUtility.findNode(node, "properties");
        for (Node propertyNode = propertiesNode.getFirstChild(); propertyNode != null; propertyNode = propertyNode.getNextSibling()) {
            if (propertyNode.getNodeType() == Node.ELEMENT_NODE) {
                Property property = PropertyFactory.createProperty(realm, propertyNode);
                vegetationImpl.addProperty(property);
            }
        }
        return vegetationImpl;
    }
}
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.