Examples of containsAttribute()


Examples of ch.ethz.inf.vs.californium.server.resources.ResourceAttributes.containsAttribute()

          if (expected.endsWith("*")) {
            return path.startsWith(expected.substring(0, expected.length()-1));
          } else {
            return path.equals(expected);
          }
        } else if (attributes.containsAttribute(attrName)) {
          // lookup attribute value
          for (String actual : attributes.getAttributeValues(attrName)) {
         
            // get prefix length according to "*"
            int prefixLength = expected.indexOf('*');
 
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.containsAttribute()

      while (sit.hasNext()) {
        AttributeSet next = sit.next().getAttributeSet();
        Iterator<Attribute<Object>> ait = attrMap.keySet().iterator();
        while (ait.hasNext()) {
          Attribute<Object> attr = ait.next();
          if (next.containsAttribute(attr)) {
            Object v = attrMap.get(attr);
            if (v != null && !v.equals(next.getValue(attr))) {
              attrMap.put(attr, null);
            }
          } else {
View Full Code Here

Examples of com.dtrules.entity.IREntity.containsAttribute()

    public IREntity findEntity(RName name) throws RulesException{
       RName entityname = name.getEntityName();                     // If the RName does not spec an Enttiy Name
       if(entityname == null){                                      //   then we simply look for the RName in each
           for(int i=entitystkptr-1;i>=0;i--){                      //   entity on the Entity Stack.
               IREntity e = entitystk[i];
               if(e.containsAttribute(name)) return e;
           }
       }else{                                                       // Otherwise, we insist that the Entity name
           for(int i=entitystkptr-1;i>=0;i--){                      //   match as well as insist that the Entity
               IREntity e = entitystk[i];                           //   have an attribute that matches this name.
               if(e.getName().equals(entityname)){
View Full Code Here

Examples of com.dtrules.entity.REntity.containsAttribute()

      entity = (REntity) state.entitypop();
      Iterator pairs  = map.attribute2listPairs.iterator();
      body = "";                                                      // Don't care about the Body if we created an Entity.
      while(pairs.hasNext()){
        Object [] pair =  (Object []) pairs.next();
          if(entity.containsAttribute(RName.getRName((String)pair[0]))){
            RName.getRName((String) pair[1],true).execute(state);
            state.entitypush(entity);
            RName.getRName("addto",true).execute(state);
           
          }
View Full Code Here

Examples of it.eng.spago.base.SourceBean.containsAttribute()

        qbeList = template.getAttributeAsList(TAG_ROOT_NORMAL);
        for(int i = 0; i < qbeList.size(); i++) {
          qbeSB = (SourceBean)qbeList.get(i);
         
          // DATAMART block
          if(qbeSB.containsAttribute(TAG_DATAMART)) {
            datamartSB = (SourceBean)qbeSB.getAttribute(TAG_DATAMART)
            dmName = (String)datamartSB.getAttribute(PROP_DATAMART_NAME);
            Assert.assertTrue(!StringUtilities.isEmpty(dmName), "Attribute [" + PROP_DATAMART_NAME +"] in tag [" + TAG_DATAMART + "] must be properly defined");
           
            qbeTemplate.addDatamartName( dmName );
View Full Code Here

Examples of javax.swing.text.AttributeSet.containsAttribute()

        private ElementSpec findLastSpec(final Tag tag) {
            for (int i = parseBuffer.size() - 1; i >= 0; i--) {
                ElementSpec spec = (ElementSpec)parseBuffer.get(i);
                final AttributeSet specAttr = spec.getAttributes();
                if (specAttr != null && specAttr.containsAttribute(StyleConstants.NameAttribute, tag)) {
                    return spec;
                }
            }
            return null;
        }
View Full Code Here

Examples of javax.swing.text.SimpleAttributeSet.containsAttribute()

  public void test(TestHarness harness)     
  {
    harness.checkPoint("containsAttribute()");
   
    SimpleAttributeSet s = new SimpleAttributeSet();
    harness.check(s.containsAttribute("X1", "Y1"), false);
    s.addAttribute("X1", "Y1");
    harness.check(s.containsAttribute("X1", "Y1"), true);
    harness.check(s.containsAttribute("X1", "Y2"), false);
    harness.check(s.containsAttribute("X2", "Y1"), false);
       
View Full Code Here

Examples of javax.swing.text.Style.containsAttribute()

    public boolean containsAttribute(final Object arg0, final Object arg1) {
        Iterator it = styleList.iterator();
        boolean result = false;
        while (!result && it.hasNext()) {
            Style style = styleSheet.getStyle(it.next().toString());
            result = style.containsAttribute(arg0, arg1);
        }
        if (result) {
            return result;
        }
        it = sheetList.iterator();
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.DefaultEntry.containsAttribute()

        assertFalse( session.exists( origDn ) );

        entry = session.lookup( newDn, "+" );

        assertTrue( entry.containsAttribute( SchemaConstants.MODIFIERS_NAME_AT ) );
        assertTrue( entry.containsAttribute( SchemaConstants.MODIFY_TIMESTAMP_AT ) );
    }


    @Test
View Full Code Here

Examples of org.apache.directory.api.ldap.model.entry.Entry.containsAttribute()

        assertFalse( session.exists( origDn ) );

        entry = session.lookup( newDn, "+" );

        assertTrue( entry.containsAttribute( SchemaConstants.MODIFIERS_NAME_AT ) );
        assertTrue( entry.containsAttribute( SchemaConstants.MODIFY_TIMESTAMP_AT ) );
    }


    @Test
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.