Package org.dom4j

Examples of org.dom4j.Node.selectSingleNode()


            String username = userNode.selectSingleNode("username").getText();
            // Escape the username so that it can be used as a JID.
            username = JID.escapeNode(username);

            // Gets the enabled field
            boolean isEnabled = Boolean.valueOf(userNode.selectSingleNode("enabled").getText());
            if (isEnabled) {
                // We're good, indicate that they're not locked out.
                return null;
            }
            else {
View Full Code Here


    private Group translateGroup(Element responseNode) {

        Node groupNode = responseNode.selectSingleNode("return");

        // Gets the CS DISPLAY NAME that is OF NAME
        String name = groupNode.selectSingleNode("displayName").getText();

        // Gets the CS NAME that is OF DISPLAY NAME
        String displayName = groupNode.selectSingleNode("name").getText();

        // Gets the group ID
View Full Code Here

        // Gets the CS DISPLAY NAME that is OF NAME
        String name = groupNode.selectSingleNode("displayName").getText();

        // Gets the CS NAME that is OF DISPLAY NAME
        String displayName = groupNode.selectSingleNode("name").getText();

        // Gets the group ID
        long id = Long.parseLong(groupNode.selectSingleNode("ID").getText());

        // Gets the group type
View Full Code Here

        // Gets the CS NAME that is OF DISPLAY NAME
        String displayName = groupNode.selectSingleNode("name").getText();

        // Gets the group ID
        long id = Long.parseLong(groupNode.selectSingleNode("ID").getText());

        // Gets the group type
        int type = Integer.parseInt(groupNode.selectSingleNode("typeID").getText());

        // Gets the group description if it exist
View Full Code Here

        // Gets the group ID
        long id = Long.parseLong(groupNode.selectSingleNode("ID").getText());

        // Gets the group type
        int type = Integer.parseInt(groupNode.selectSingleNode("typeID").getText());

        // Gets the group description if it exist
        String description = null;
        Node tmpNode = groupNode.selectSingleNode("description");
        if (tmpNode != null) {
View Full Code Here

    }

    // URL click-through attributes (useBaseURL, target) are only processed IF we
    // have an urlTemplate attribute
    if ( ( urlTemplate == null ) || ( urlTemplate.length() == 0 ) ) {
      if ( chartAttributes.selectSingleNode( ChartComponent.URL_TEMPLATE ) != null ) {
        urlTemplate = chartAttributes.selectSingleNode( ChartComponent.URL_TEMPLATE ).getText();
      }
    }

    // These parameters are replacement variables parsed into the
View Full Code Here

    // URL click-through attributes (useBaseURL, target) are only processed IF we
    // have an urlTemplate attribute
    if ( ( urlTemplate == null ) || ( urlTemplate.length() == 0 ) ) {
      if ( chartAttributes.selectSingleNode( ChartComponent.URL_TEMPLATE ) != null ) {
        urlTemplate = chartAttributes.selectSingleNode( ChartComponent.URL_TEMPLATE ).getText();
      }
    }

    // These parameters are replacement variables parsed into the
    // urlTemplate specifically when we have a URL that is a drill-through
View Full Code Here

    // These parameters are replacement variables parsed into the
    // urlTemplate specifically when we have a URL that is a drill-through
    // link in a chart intended to drill down into the chart data.
    String parameterName = (String) getInputValue( ChartComponent.PARAMETER_NAME );
    if ( ( parameterName == null ) || ( parameterName.length() == 0 ) ) {
      if ( chartAttributes.selectSingleNode( ChartComponent.PARAMETER_NAME ) != null ) {
        parameterName = chartAttributes.selectSingleNode( ChartComponent.PARAMETER_NAME ).getText();
      }
    }

    // These parameters are replacement variables parsed into the
View Full Code Here

    // urlTemplate specifically when we have a URL that is a drill-through
    // link in a chart intended to drill down into the chart data.
    String parameterName = (String) getInputValue( ChartComponent.PARAMETER_NAME );
    if ( ( parameterName == null ) || ( parameterName.length() == 0 ) ) {
      if ( chartAttributes.selectSingleNode( ChartComponent.PARAMETER_NAME ) != null ) {
        parameterName = chartAttributes.selectSingleNode( ChartComponent.PARAMETER_NAME ).getText();
      }
    }

    // These parameters are replacement variables parsed into the
    // urlTemplate specifically when we have a URL that is a drill-through
View Full Code Here

    // These parameters are replacement variables parsed into the
    // urlTemplate specifically when we have a URL that is a drill-through
    // link in a chart intended to drill down into the chart data.
    String outerParameterName = (String) getInputValue( ChartComponent.OUTER_PARAMETER_NAME );
    if ( ( outerParameterName == null ) || ( outerParameterName.length() == 0 ) ) {
      if ( chartAttributes.selectSingleNode( ChartComponent.OUTER_PARAMETER_NAME ) != null ) {
        outerParameterName = chartAttributes.selectSingleNode( ChartComponent.OUTER_PARAMETER_NAME ).getText();
      }
    }

    String chartType = chartAttributes.selectSingleNode( ChartDefinition.TYPE_NODE_NAME ).getText();
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.