Examples of addAttribute()


Examples of aQute.bnd.osgi.resource.CapReqBuilder.addAttribute()

        // Add system.packages.extra
        if (sysPkgsExtra != null)
            for (ExportedPackage sysPkg : sysPkgsExtra) {
                CapReqBuilder builder = new CapReqBuilder(PackageNamespace.PACKAGE_NAMESPACE);
                builder.addAttribute(PackageNamespace.PACKAGE_NAMESPACE, sysPkg.getName());
                String versionStr = sysPkg.getVersionString();
                Version version = versionStr != null ? new Version(versionStr) : Version.emptyVersion;
                builder.addAttribute(PackageNamespace.CAPABILITY_VERSION_ATTRIBUTE, version);
                Capability cap = builder.setResource(framework).buildCapability();
                capIndex.addCapability(cap);

Examples of aQute.lib.tag.Tag.addAttribute()

    try {
      rsp.setContentType(xml ? "text/xml" : "text/html");

      Tag tag = new Tag("result");
      tag.addAttribute("start", new Date());
      String template = doXML(tag, rq, rsp);
      tag.addAttribute("end", new Date());

      tmp.println("<?xml version='1.0'?>");
      tmp.println("<?xml-stylesheet type='text/xsl' title='Compact' "

Examples of br.uniriotec.orion.model.forte.resources.Concept.addAttribute()

                DatatypeProperty datatype = iterator.next();
                ConceptAttribute atrib = new ConceptAttribute();
                atrib.setNomeAtributo(lowerFirstChar(datatype.getLocalName()));
                atrib.setTipoRange(recuperarDomainsDatatype(datatype));
                //TODO interacao com o usuario para decidir se o atributo deve ser considerado
                tmpConcept.addAttribute(atrib);
            }
           
           
            /* Recupera a lista de classes que sao subclasses do conceito sendo gerado
             * e insere um ConceptAxiom para cada uma delas. Cada ConceptAxioma recebera

Examples of cambridge.model.TagNode.addAttribute()

               if (firstTag && "xmlns".equalsIgnoreCase(element.getAttributeNameSpace())) {
                  putNamespaceMapping(element.getAttributeName(), element.getValue());
               }

               node.addAttribute(element);
               break;
            case EXPRESSION:
               try {

                  ExpressionToken t = (ExpressionToken) currentToken;

Examples of ch.agent.crnickl.api.UpdatableSchema.addAttribute()

  }
 
  public void test028_create_schema() {
    try {
      UpdatableSchema schema = db.createSchema("foo schema", null);
      schema.addAttribute(2);
      schema.setAttributeProperty(2, db.getProperty("foo property", true));
      schema.setAttributeDefault(2, "bar");
      schema.addSeries(1);
      schema.setSeriesName(1, "fooser");
      schema.setSeriesType(1, "numeric");

Examples of com.adito.core.CoreEvent.addAttribute()

                    MessageResources mrPermission = CoreUtil.getMessageResources(request.getSession(), permission.getPermission().getBundle());
                    String permissionName = mrPermission.getMessage("permission."+permission.getPermission().getId()+".title").trim();

                    MessageResources mrResourceType = CoreUtil.getMessageResources(request.getSession(), permission.getResourceType().getBundle());
                    String resourceTypeName = mrResourceType.getMessage("resourceType."+permission.getResourceType().getResourceTypeId()+".title").trim();
                    coreEvent.addAttribute(CoreAttributeConstants.EVENT_ATTR_TYPE_PERMISSION + Integer.toString(j), permissionName + " " + resourceTypeName);
                }
            }
            CoreServlet.getServlet().fireCoreEvent(coreEvent);
           
        } catch (Exception e) {

Examples of com.alkacon.acacia.shared.Type.addAttribute()

     */
    private ContentDefinition generateContentDefinition() {

        Type string = new Type(stringTypeName);
        Type address = new Type(addressTypeName);
        address.addAttribute(cityAttribute, stringTypeName, 1, 1);
        address.addAttribute(countryAttribute, stringTypeName, 1, 1);
        Type person = new Type(personTypeName);
        person.addAttribute(firstnameAttribute, stringTypeName, 1, 1);
        person.addAttribute(lastNameAttribute, stringTypeName, 1, 1);
        person.addAttribute(addressAttribute, addressTypeName, 1, 1);

Examples of com.alkacon.vie.shared.I_Type.addAttribute()

        }
        regType.setChoiceMaxOccurrence(type.getChoiceMaxOccurrence());
        for (String attributeName : type.getAttributeNames()) {
            String attributeType = type.getAttributeTypeName(attributeName);
            registerTypes(types.get(attributeType), types);
            regType.addAttribute(
                attributeName,
                attributeType,
                type.getAttributeMinOccurrence(attributeName),
                type.getAttributeMaxOccurrence(attributeName));
        }

Examples of com.anthonyeden.lib.config.MutableConfiguration.addAttribute()

    BGAreaManager am = BGAreaManagerImpl.getInstance();
    List areas = am.findBGAreasOfBGContext(context);
    for (Iterator iter = areas.iterator(); iter.hasNext();) {
      BGArea area = (BGArea) iter.next();
      MutableConfiguration newArea = confAreas.addChild(EXPORT_KEY_AREA);
      newArea.addAttribute(EXPORT_ATTR_NAME, area.getName());
      newArea.addChild(EXPORT_KEY_DESCRIPTION, area.getDescription());
    }

    // TODO fg: export group rights

Examples of com.arjuna.orbportability.ORB.addAttribute()

      _currentState = NONE;

      /*
       * Registering attributes with ORB
       */
      orb.addAttribute( new PreTestAttribute( this ) );
      orb.addAttribute( new PostTestAttribute( this ) );

            /*
       * Initialise the ORB and OA
       */
 
TOP
Copyright © 2015 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.