Package com.caucho.xml

Examples of com.caucho.xml.QName


    unread(ch);

    parseAttributes(keys, values, prefixes, uris);

    QName qname = getElementQName(name);

    setLocation(_jspPath, _filename, _lineStart);
    _lineStart = _line;

    _jspBuilder.startElement(qname);


    for (int i = 0; i < keys.size(); i++) {
      QName key = keys.get(i);
      String value = values.get(i);

      _jspBuilder.attribute(key, value);
    }
View Full Code Here


      String url = Namespace.find(_namespaces, prefix);

      _prefixes.add(prefix);

      if (url != null)
        return new QName(prefix, name.substring(p + 1), url);
      else
        return new QName("", name, "");
    }
    else {
      String url = Namespace.find(_namespaces, "");

      if (url != null)
        return new QName("", name, url);
      else
        return new QName("", name, "");
    }
  }
View Full Code Here

    if (p > 0) {
      String prefix = name.substring(0, p);
      String url = Namespace.find(_namespaces, prefix);

      if (url != null)
        return new QName(prefix, name.substring(p + 1), url);
      else
        return new QName("", name, "");
    }
    else
      return new QName("", name, "");
  }
View Full Code Here

      out.println(var + ".setParent((javax.servlet.jsp.tagext.Tag) " + parentName + ");");
    }

    ArrayList<QName> names = _tag.getAttributeNames();
    for (int i = 0; i < names.size(); i++) {
      QName name = names.get(i);

      String value = _tag.getAttribute(name);
      if (value == null)
        continue;
     
      TagAttributeInfo attrInfo = _tag.getAttributeInfo(name.getLocalName());

      boolean isRequestTime = true;

      if (attrInfo != null)
        isRequestTime = attrInfo.canBeRequestTime();
View Full Code Here

           String prefix,
           String localName,
           String uri,
           Class cl)
  {
    map.put(new QName(prefix, localName, uri), cl);
    map.put(new QName(prefix, localName, "urn:jsptld:" + uri), cl);
  }
View Full Code Here

      _baseUri = attribute.getBaseURI();

      ConfigType<?> type = TypeFactory.getType(bean);

      QName qName = ((QAbstractNode) attribute).getQName();

      type.beforeConfigure(this, bean, attribute);

      configureChildNode(attribute, qName, bean, type, false);
View Full Code Here

      configureNodeAttributes(node, bean, type);

      for (Node childNode = node.getFirstChild();
           childNode != null;
           childNode = childNode.getNextSibling()) {
        QName qName = ((QAbstractNode) childNode).getQName();

        configureChildNode(childNode, qName, bean, type, false);
      }

      if (log.isLoggable(Level.FINEST))
View Full Code Here

    if (node instanceof QAttributedNode) {
      Node child = ((QAttributedNode) node).getFirstAttribute();

      for (; child != null; child = child.getNextSibling()) {
        Attr attr = (Attr) child;
        QName qName = ((QNode) attr).getQName();

        configureChildNode(attr, qName, bean, type, false);
      }
    }
    else {
      NamedNodeMap attrList = node.getAttributes();
      if (attrList != null) {
        int length = attrList.getLength();
        for (int i = 0; i < length; i++) {
          Attr attr = (Attr) attrList.item(i);
          QName qName = ((QNode) attr).getQName();

          configureChildNode(attr, qName, bean, type, false);
        }
      }
    }
View Full Code Here

    if (childNode == null) {
      return false;
    }
   
    QName qName = ((QNode) childNode).getQName();

    ConfigType<?> type = TypeFactory.getFactory().getEnvironmentType(qName);

    if (type == null || ! attrStrategy.isInlineType(type)) {
      // server/6500
View Full Code Here

                      attr, bean, qName),
                      node);
    }
   

    QName childQName = ((QNode) child).getQName();
    String uri = childQName.getNamespaceURI();

    if (uri == null || ! uri.startsWith("urn:java:")) {
      throw error(L.l("unable to create inline attribute '{0}' for '{1}' because the child <{2}> uri must start with xmlns='urn:java:...' but uri='{3}' for {4}",
                      qName.getName(), bean, childQName.getName(), uri, attr),
                      node);
    }
   
    throw throwUnableToCreateError(attr, bean, qName, node);
  }
View Full Code Here

TOP

Related Classes of com.caucho.xml.QName

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.