Examples of Attributes


Examples of org.mortbay.util.Attributes

        Request base_request=(request instanceof Request)?((Request)request):HttpConnection.getCurrentConnection().getRequest();
        request.removeAttribute(__JSP_FILE); // TODO remove when glassfish 1044 is fixed
       
        // TODO - allow stream or writer????
       
        Attributes old_attr=base_request.getAttributes();
        MultiMap old_params=base_request.getParameters();
        try
        {
            base_request.getConnection().include();
            if (_named!=null)
View Full Code Here

Examples of org.sonatype.nexus.proxy.attributes.Attributes

        final RepositoryItemUid uid = item.getRepositoryItemUid();

        final AttributeStorage attributeStorage = repository
            .getAttributesHandler().getAttributeStorage();

        final Attributes attributes = attributeStorage
            .getAttributes(uid);

        attributes.put(ATTR_IS_SAVED, "true");
        attributes.put(ATTR_SAVE_TIME, "" + System.currentTimeMillis());

        attributeStorage.putAttributes(uid, attributes);

      } catch (final Exception e) {
View Full Code Here

Examples of org.springframework.data.simpledb.annotation.Attributes

  @SuppressWarnings("unchecked")
  public static Map<String, String> getAttributes(Object object) {
    Class<?> clazz = object.getClass();
    for(Field f : clazz.getDeclaredFields()) {
      Attributes attributes = f.getAnnotation(Attributes.class);
      if(attributes != null) {
        try {
          f.setAccessible(true);
          return (Map<String, String>) f.get(object);
        } catch(IllegalAccessException e) {
View Full Code Here

Examples of org.springframework.metadata.Attributes

    TransactionAttribute actual = atas.getTransactionAttribute(method, null);
    assertEquals(txAtt, actual);
  }

  public void testUnboundedCacheSizeGrowth() throws Exception {
    Attributes attributes = new CommonsAttributes();
    AttributesTransactionAttributeSource attributeSource = new AttributesTransactionAttributeSource(attributes);
    for (int i = 0; i < 100; i++) {
      PrototypeBean bean = new PrototypeBean();
      Method m = bean.getClass().getMethod("doNothing", new Class[0]);
      attributeSource.getTransactionAttribute(m, bean.getClass());
View Full Code Here

Examples of org.twdata.maven.mojoexecutor.MojoExecutor.Attributes

    list.add(new Attribute("failonerror", "false"));
    list.add(new Attribute("overwrite", "false"));
    for(Attribute a : additional) {
        list.add(a);
    }
    return new Attributes(list.toArray(new Attribute[list.size()]));
    }
View Full Code Here

Examples of org.vietspider.token.attribute.Attributes

    downloadResources(address, tokens, resources);

    for(int i = 0; i < tokens.size(); i++) {
      NodeImpl token = tokens.get(i);
      if(token.getType() != TypeToken.TAG || !token.isNode(Name.A)) continue;
      Attributes attributes = token.getAttributes();
      Attribute attribute = attributes.get("href");
      if(attribute == null) continue;
      String link  = attribute.getValue();
      if(link == null || link.trim().length() < 1) continue;
      link  = urlUtils.createURL(parent, link);
      String subName = "";
      try {
        URL subUrl = new URL(link);
        String temp = subUrl.getPath();
        if(temp != null) subName += temp;
        temp = subUrl.getQuery();
        if(temp != null) subName += "_"+temp;
        subName = toName(subName);
      }catch (Exception e) {
      }
      if(subName == null || subName.trim().length() < 1) subName = toName(link);
      try{
        crawl(new URL(address), link, subName, level+1, depth);
      }catch (Exception e) {
        System.err.println(e);
      }
      attribute.setValue(subName+".html");
      attributes.set(attribute);
    }


    StringBuilder contentBuilder = new StringBuilder();
    for(int i = 0; i < tokens.size(); i++) {
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.Attributes

      @Override
      public <N, E extends N, T extends N> void exec(ObservableMutableDocument<N, E, T> doc) {
        E container = doc.getDocumentElement();

        // Insert entries
        Attributes attrs =
            state != null ? new AttributesImpl(VALUE_ATTR, state.toString()) : Attributes.EMPTY_MAP;
        doc.createChildElement(container, ENTRY_TAG, attrs);
      }
    });
  }
View Full Code Here

Examples of org.wicketstuff.yui.helper.Attributes

    YuiMenu menu = new YuiMenu("menu")
    {
      @Override
      protected String getOpts()
      {
        Attributes attributes = new Attributes();
        attributes.add(new Attributes("visible", true));
        attributes.add(new Attributes("clicktohide", false));
        attributes.add(new Attributes("fixedcenter", true));
        return attributes.toString();
      }
    };


    menu.addMenuItem(new TestAction("M : L1"));
View Full Code Here

Examples of org.xml.sax.Attributes

                rawname = qName.getLocalPart();
            } else {
                rawname = prefix + ':' + qName.getLocalPart();
            }
           
            Attributes saxAttrs = getAttributes(event);
            _sax.startElement(
                qName.getNamespaceURI(),
                qName.getLocalPart(),
                rawname,
                saxAttrs);
View Full Code Here

Examples of r.data.RAny.Attributes

            if (LIMIT_VIEW_DEPTH) {
                depth = complexViewDepth(a) + complexViewDepth(b) + 1;
            }
            int[] dim = resultDimensions(ast, a, b);
            Names names = resultNames(ast, a, b);
            Attributes attributes = resultAttributes(ast, a, b);
            int na = a.size();
            int nb = b.size();
            RComplex res;

            if (na == nb) {
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.