Examples of AttributeCollection


Examples of client.net.sf.saxon.ce.om.AttributeCollection

        if (prepared) {
            return;
        }
        prepared = true;

    AttributeCollection atts = getAttributeList();

        for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f.equals(StandardNames.NAME)) {
            name = Whitespace.trim(atts.getValue(a));
          } else if (f.equals(StandardNames.DECIMAL_SEPARATOR)) {
            decimalSeparator = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUPING_SEPARATOR)) {
            groupingSeparator = atts.getValue(a);
          } else if (f.equals(StandardNames.INFINITY)) {
            infinity = atts.getValue(a);
          } else if (f.equals(StandardNames.MINUS_SIGN)) {
            minusSign = atts.getValue(a);
          } else if (f.equals(StandardNames.NAN)) {
            NaN = atts.getValue(a);
          } else if (f.equals(StandardNames.PERCENT)) {
            percent = atts.getValue(a);
          } else if (f.equals(StandardNames.PER_MILLE)) {
            perMille = atts.getValue(a);
          } else if (f.equals(StandardNames.ZERO_DIGIT)) {
            zeroDigit = atts.getValue(a);
          } else if (f.equals(StandardNames.DIGIT)) {
            digit = atts.getValue(a);
          } else if (f.equals(StandardNames.PATTERN_SEPARATOR)) {
            patternSeparator = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

    public abstract boolean isImport();

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f.equals(StandardNames.HREF)) {
            href = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

    public void prepareAttributes() throws XPathException {

        String terminateAtt = null;
        String selectAtt = null;
    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f == StandardNames.TERMINATE) {
            terminateAtt = Whitespace.trim(atts.getValue(a));
            } else if (f == StandardNames.SELECT) {
                selectAtt = atts.getValue(a);

            } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

        Expression name = null;
        String nameAtt = null;
        String selectAtt = null;

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f.equals(StandardNames.NAME)) {
            nameAtt = Whitespace.trim(atts.getValue(a));
             } else if (f.equals(StandardNames.SELECT)) {
            selectAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

    protected ItemType getReturnedItemType() {
        return getCommonChildItemType();
    }

    public void prepareAttributes() throws XPathException {
    AttributeCollection atts = getAttributeList();
    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
          checkUnknownAttribute(nc);
        }
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

        // the character to be substituted, as a Unicode codepoint (may be > 65535)
    private String replacementString = null;

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.CHARACTER) {
                String s = atts.getValue(a);
                switch (s.length()) {
                    case 0:
                        compileError("character attribute must not be zero-length", "XTSE0020");
                        codepoint = 256; // for error recovery
                        break;
                    case 1:
                        codepoint = s.charAt(0);
                        break;
                    case 2:
                        if (UTF16CharacterSet.isHighSurrogate(s.charAt(0)) &&
                                UTF16CharacterSet.isLowSurrogate(s.charAt(1))) {
                            codepoint = UTF16CharacterSet.combinePair(s.charAt(0), s.charAt(1));
                        } else {
                            compileError("character attribute must be a single XML character", "XTSE0020");
                            codepoint = 256; // for error recovery
                        }
                        break;
                    default:
                        compileError("character attribute must be a single XML character", "XTSE0020");
                        codepoint = 256; // for error recovery
                }
          } else if (f==StandardNames.STRING) {
            replacementString = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (codepoint==-1) {
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

    protected boolean seesAvuncularVariables() {
        return false;
    }

    public void prepareAttributes() throws XPathException {
    AttributeCollection atts = getAttributeList();
    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
          checkUnknownAttribute(nc);
        }
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

        return true;
    }

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();
    String selectAtt = null;
    String copyNamespacesAtt = null;
    String validationAtt = null;
    String typeAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f.equals(StandardNames.SELECT)) {
            selectAtt = atts.getValue(a);
            } else if (f.equals(StandardNames.COPY_NAMESPACES)) {
                copyNamespacesAtt = Whitespace.trim(atts.getValue(a));
            } else if (f.equals(StandardNames.VALIDATION)) {
                validationAtt = Whitespace.trim(atts.getValue(a));
            } else if (f.equals(StandardNames.TYPE)) {
                typeAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

        return true;
    }

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    String selectAtt = null;
    String groupByAtt = null;
    String groupAdjacentAtt = null;
    String startingAtt = null;
    String endingAtt = null;
        String collationAtt = null;

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
            if (f.equals(StandardNames.SELECT)) {
            selectAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_BY)) {
            groupByAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_ADJACENT)) {
            groupAdjacentAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_STARTING_WITH)) {
            startingAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.GROUP_ENDING_WITH)) {
            endingAtt = atts.getValue(a);
          } else if (f.equals(StandardNames.COLLATION)) {
            collationAtt = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.AttributeCollection

     public void prepareAttributes() throws XPathException {
    String selectAtt = null;
    String regexAtt = null;
    String flagsAtt = null;

    AttributeCollection atts = getAttributeList();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f.equals(StandardNames.REGEX)) {
            regexAtt = atts.getValue(a);
      } else if (f.equals(StandardNames.SELECT)) {
            selectAtt = atts.getValue(a);
      } else if (f.equals(StandardNames.FLAGS)) {
            flagsAtt = atts.getValue(a); // not trimmed, see bugzilla 4315
          } else {
            checkUnknownAttribute(nc);
          }
        }
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.