Package net.sf.saxon.om

Examples of net.sf.saxon.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==StandardNames.NAME) {
            name = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.DECIMAL_SEPARATOR) {
            decimalSeparator = atts.getValue(a);
          } else if (f==StandardNames.GROUPING_SEPARATOR) {
            groupingSeparator = atts.getValue(a);
          } else if (f==StandardNames.INFINITY) {
            infinity = atts.getValue(a);
          } else if (f==StandardNames.MINUS_SIGN) {
            minusSign = atts.getValue(a);
          } else if (f==StandardNames.NAN) {
            NaN = atts.getValue(a);
          } else if (f==StandardNames.PERCENT) {
            percent = atts.getValue(a);
          } else if (f==StandardNames.PER_MILLE) {
            perMille = atts.getValue(a);
          } else if (f==StandardNames.ZERO_DIGIT) {
            zeroDigit = atts.getValue(a);
          } else if (f==StandardNames.DIGIT) {
            digit = atts.getValue(a);
          } else if (f==StandardNames.PATTERN_SEPARATOR) {
            patternSeparator = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
    }
View Full Code Here


        return true;
    }

    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

    private StringCollator collator;

    public void prepareAttributes() throws XPathException {

    AttributeCollection atts = getAttributeList();

    String nameAtt = null;              // collation name for use in expressions
    String defaultAtt = null;

        Properties props = new Properties();

    for (int a=0; a<atts.getLength(); a++) {
      int nc = atts.getNameCode(a);
      String f = getNamePool().getClarkName(nc);
      if (f==StandardNames.NAME) {
            nameAtt = Whitespace.trim(atts.getValue(a));
            } else if (f==StandardNames.CLASS) {
                props.setProperty("class", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.STRENGTH) {
                props.setProperty("strength", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.DECOMPOSITION) {
                props.setProperty("decomposition", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.LANG) {
                props.setProperty("lang", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.RULES) {
                props.setProperty("rules", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.CASE_ORDER) {
                props.setProperty("case-order", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.ALPHANUMERIC) {
                props.setProperty("alphanumeric", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.IGNORE_CASE) {
                props.setProperty("ignore-case", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.IGNORE_MODIFIERS) {
                props.setProperty("ignore-modifiers", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.IGNORE_SYMBOLS) {
                props.setProperty("ignore-modifiers", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.IGNORE_WIDTH) {
                props.setProperty("ignore-width", Whitespace.trim(atts.getValue(a)) );
            } else if (f==StandardNames.DEFAULT) {
                defaultAtt = Whitespace.trim(atts.getValue(a)) ;
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    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==StandardNames.HREF) {
            href = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    }

    public void prepareAttributes() throws XPathException {
        String testAtt=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.TEST) {
            testAtt = atts.getValue(a);
          } else {
            checkUnknownAttribute(nc);
          }
        }
View Full Code Here

    */

    public AttributeImpl(ElementImpl element, int index) {
        parent = element;
        this.index = index;
        AttributeCollection atts = element.getAttributeList();
        this.nameCode = atts.getNameCode(index);
        this.value = atts.getValue(index);
        this.typeCode = atts.getTypeAnnotation(index);
    }
View Full Code Here

    public void prepareAttributes() throws XPathException {

      String stylesheetPrefix=null;
      String resultPrefix=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.STYLESHEET_PREFIX) {
            stylesheetPrefix = Whitespace.trim(atts.getValue(a));
          } else if (f==StandardNames.RESULT_PREFIX) {
            resultPrefix = Whitespace.trim(atts.getValue(a));
          } else {
            checkUnknownAttribute(nc);
          }
        }
        if (stylesheetPrefix==null) {
View Full Code Here

TOP

Related Classes of net.sf.saxon.om.AttributeCollection

Copyright © 2018 www.massapicom. 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.