Examples of attributeValue()


Examples of org.dom4j.Element.attributeValue()

   
    List resourcesList = elResources.elements("resource");
    resources = new HashMap(resourcesList.size());
    for (Iterator iter = resourcesList.iterator(); iter.hasNext();) {
      Element elRes = (Element) iter.next();
      String identVal = elRes.attributeValue("identifier");
      String hrefVal = elRes.attributeValue("href");
      if (hrefVal != null) { // href is optional element for resource element
        try {
          hrefVal = URLDecoder.decode(hrefVal, "UTF-8");
        } catch (UnsupportedEncodingException e) {
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

    List resourcesList = elResources.elements("resource");
    resources = new HashMap(resourcesList.size());
    for (Iterator iter = resourcesList.iterator(); iter.hasNext();) {
      Element elRes = (Element) iter.next();
      String identVal = elRes.attributeValue("identifier");
      String hrefVal = elRes.attributeValue("href");
      if (hrefVal != null) { // href is optional element for resource element
        try {
          hrefVal = URLDecoder.decode(hrefVal, "UTF-8");
        } catch (UnsupportedEncodingException e) {
          // each JVM must implement UTF-8
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

    if (fulfilled) {
      vars = itc.getVariables();
      List setvars = el_respcond.selectNodes("setvar");
      for (Iterator iter = setvars.iterator(); iter.hasNext();) {
        Element element = (Element) iter.next();
        String action = element.attributeValue("action");
        String varName = element.attributeValue("varname");
        if (varName == null) varName = "SCORE";
        varName.trim();
        String varVal = element.getText();
        Variable var = vars.getVariable(varName);
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

      vars = itc.getVariables();
      List setvars = el_respcond.selectNodes("setvar");
      for (Iterator iter = setvars.iterator(); iter.hasNext();) {
        Element element = (Element) iter.next();
        String action = element.attributeValue("action");
        String varName = element.attributeValue("varname");
        if (varName == null) varName = "SCORE";
        varName.trim();
        String varVal = element.getText();
        Variable var = vars.getVariable(varName);
        if (var == null) throw new RuntimeException("var "+varName+" is in setvar, but was not declared ");
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

      //<!ATTLIST displayfeedback  feedbacktype  (Response | Solution | Hint )  'Response' %I_LinkRefId; >
      Output output = itc.getOutput();
      List fbs = el_respcond.selectNodes("displayfeedback");
      for (Iterator it_fbs = fbs.iterator(); it_fbs.hasNext();) {
        Element el_dispfb = (Element) it_fbs.next();
        String linkRefId = el_dispfb.attributeValue("linkrefid"); // must exist (dtd)
        String feedbacktype = el_dispfb.attributeValue("feedbacktype"); // must exist (dtd)
        Element el_resolved =
          (Element) itc.getEl_item().selectSingleNode(".//itemfeedback[@ident='" + linkRefId + "']");
        if (el_resolved == null) continue;
        if (feedbacktype.equals("Response")) {
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

      Output output = itc.getOutput();
      List fbs = el_respcond.selectNodes("displayfeedback");
      for (Iterator it_fbs = fbs.iterator(); it_fbs.hasNext();) {
        Element el_dispfb = (Element) it_fbs.next();
        String linkRefId = el_dispfb.attributeValue("linkrefid"); // must exist (dtd)
        String feedbacktype = el_dispfb.attributeValue("feedbacktype"); // must exist (dtd)
        Element el_resolved =
          (Element) itc.getEl_item().selectSingleNode(".//itemfeedback[@ident='" + linkRefId + "']");
        if (el_resolved == null) continue;
        if (feedbacktype.equals("Response")) {
          // additional (olat) rule:
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

   
    List resourcesList = elResources.elements("resource");
    resources = new HashMap(resourcesList.size());
    for (Iterator iter = resourcesList.iterator(); iter.hasNext();) {
      Element elRes = (Element) iter.next();
      String identVal = elRes.attributeValue("identifier");
      String hrefVal = elRes.attributeValue("href");
      if (hrefVal != null) { // href is optional element for resource element
        try {
          hrefVal = URLDecoder.decode(hrefVal, "UTF-8");
        } catch (UnsupportedEncodingException e) {
View Full Code Here

Examples of org.mifosplatform.portfolio.interestratechart.domain.InterestIncentivesFields.attributeValue()

        final InterestIncentivesFields incentivesFields = incentiveDTO.incentives();
        boolean applyIncentive = false;
        switch (incentivesFields.attributeName()) {
            case GENDER:
                if (client.genderId() != null) {
                    applyIncentive = applyIncentive(incentivesFields.conditionType(), Long.valueOf(incentivesFields.attributeValue()),
                            client.genderId());
                }
            break;
            case AGE:
                if (client.dateOfBirth() != null) {
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.attributeValue()

       
        if (elementElement == null) {
            throw new ComponentException("No element is defined for "
                    + typeName);
        }
        String typesTargetNamespace = schemaElement
                .attributeValue(WSConstants.TARGET_NAMESPACE_ATTRIBUTE);
        String elementType = elementElement
                .attributeValue(WSConstants.TYPE_ATTRIBUTE);

        XmlElement sequenceElement;
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.