Examples of removeAttribute()


Examples of no.ugland.utransprod.service.AttributeManager.removeAttribute()

    AttributeManager attributeManager = (AttributeManager) ModelUtil
        .getBean("attributeManager");
    Attribute attribute = attributeManager.findByName("testing");

    if (attribute != null) {
      attributeManager.removeAttribute(attribute);
    }
  }

  @Test
  public void testOpenWindow() throws Exception {
View Full Code Here

Examples of nu.xom.Element.removeAttribute()

       );
       Builder builder = new Builder(filter);
       String data ="<a/>";
       Document doc = builder.build(data, null);
       Element root = doc.getRootElement();
       root.removeAttribute(root.getAttribute(0));
       assertNull(root.getNamespaceURI("pre"));
      
    }

   
View Full Code Here

Examples of org.apache.ace.client.repository.RepositoryObject.removeAttribute()

        }
        Enumeration<String> keys = repositoryObject.getAttributeKeys();
        while (keys.hasMoreElements()) {
            String key = keys.nextElement();
            if (!attributes.containsKey(key)) {
                repositoryObject.removeAttribute(key);
            }
        }
        updateAssociationAttributes(entityType, repositoryObject);
        updateTags(tags, repositoryObject);
    }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.removeAttribute()

    protected void runTest() throws Throwable {
        OMFactory factory = metaFactory.getOMFactory();
        OMElement element = factory.createOMElement("test", null);
        OMAttribute attr1 = element.addAttribute("attr1", "value1", null);
        OMAttribute attr2 = element.addAttribute("attr2", "value2", null);
        element.removeAttribute(attr1);
        assertNull(attr1.getOwner());
        Iterator it = element.getAllAttributes();
        assertTrue(it.hasNext());
        assertSame(attr2, it.next());
        assertFalse(it.hasNext());
View Full Code Here

Examples of org.apache.axis2.om.OMElement.removeAttribute()

        String hrefContentId = validateHref(hrefAttr);
       
        if (hrefContentId!=null) {//This is an element referencing an attachment!
          OMText omText = getOMTextForReferencedAttachment(hrefContentId, soapMsg);
          child.build();
          child.removeAttribute(hrefAttr);
          child.addChild(omText);
         
        } else { //possibly there can be references in the children of this element
             //so recurse through.
          insertAttachmentNodes(child, soapMsg);
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.handler.StorageHandler.removeAttribute()

                                         ServletContext servletContext )
    {
        StorageHandler sh = Handlers.get( servletContext ).getStorageHandler();
        HttpServletRequest unwrappedRequest = unwrapMultipart( request );
        RequestContext rc = new RequestContext( unwrappedRequest, null );
        sh.removeAttribute( rc, SHARED_FLOW_ATTR_PREFIX + sharedFlowClassName );
    }
   
    /**
     * Remove a "long-lived" page flow from the session. Once it is created, a long-lived page flow
     * is never removed from the session unless this method or {@link PageFlowController#remove} is
View Full Code Here

Examples of org.apache.cayenne.map.DbEntity.removeAttribute()

        // try merge once more to check that is was merged
        assertTokensAndExecute(node, map, 0, 0);

        // remove it from model and db
        dbEntity.removeAttribute(column.getName());
        assertTokensAndExecute(node, map, 1, 0);
        assertTokensAndExecute(node, map, 0, 0);
    }

    public void testChangeVarcharSizeToDb() throws Exception {
View Full Code Here

Examples of org.apache.cayenne.map.Embeddable.removeAttribute()

        attribute.setName(newName);
        Embeddable embeddable = attribute.getEmbeddable();
       
        if (embeddable != null) {
            embeddable.removeAttribute(oldName);
            embeddable.addAttribute(attribute);
        }
    }

    /** Changes the name of the attribute in all places in DataMap. */
 
View Full Code Here

Examples of org.apache.cayenne.map.Entity.removeAttribute()

        attribute.setName(newName);
        Entity entity = attribute.getEntity();

        if (entity != null) {
            entity.removeAttribute(oldName);
            entity.addAttribute(attribute);
        }
    }
   
   
View Full Code Here

Examples of org.apache.cayenne.map.ObjEntity.removeAttribute()

        objEntity.addAttribute(oatr1);
        map.addObjEntity(objEntity);

       
        // remove name column
        objEntity.removeAttribute(oatr1.getName());
        dbEntity.removeAttribute(column2.getName());
        assertNull(objEntity.getAttribute(oatr1.getName()));
        assertEquals(0, objEntity.getAttributes().size());
        assertNull(dbEntity.getAttribute(column2.getName()));
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.