Examples of Qname

The value of a QName contains a namespaceURI and a localPart. The localPart provides the local part of the qualified name. The namespaceURI is a URI reference identifying the namespace.

The prefix is included in the QName class to retain lexical information where present in an XML input source. The prefix is NOT used to compute the hash code or in the equals operation. In other words, equality is defined only using the namespaceURI and the localPart. @version 1.1

  • javax.xml.rpc.namespace.QName
    QName class represents a qualified name based on "Namespaces in XML" specification. A QName is represented as: QName ::= (Prefix ':') ? LocalPart Upgraded the implementation so that the namespaceURI and localPart are always non-null. This simplifies the implementation, increases performance, and cleans up NullPointerException problems. Upgraded the implemenation to make QName a final class, changed the namespaceURI and localPart to final (and interned) Strings, changed equals() to use == comparison on interned Strings. @version 0.1
  • macromedia.asc.semantics.QName
    @author Erik Tierney
  • mf.javax.xml.namespace.QName
    3.org/TR/xmlschema-2/#QName">XML Schema Part2: Datatypes specification, Namespaces in XML, Namespaces in XML Errata.

    The value of a QName contains a Namespace URI, local part and prefix.

    The prefix is included in QName to retain lexical information when present in an {@link javax.xml.transform.Source XML input source}. The prefix is NOT used in {@link #equals(Object) QName.equals(Object)} or to compute the {@link #hashCode() QName.hashCode()}. Equality and the hash code are defined using only the Namespace URI and local part.

    If not specified, the Namespace URI is set to {@link javax.xml.XMLConstants#NULL_NS_URI XMLConstants.NULL_NS_URI}. If not specified, the prefix is set to {@link javax.xml.XMLConstants#DEFAULT_NS_PREFIX XMLConstants.DEFAULT_NS_PREFIX}.

    QName is immutable.

    @author Jeff Suttor @version $Revision: 1.9 $, $Date: 2010-11-01 04:36:08 $ @see XML Schema Part2: Datatypes specification @see Namespaces in XML @see Namespaces in XML Errata @since 1.5
  • mf.org.apache.xerces.xni.QName
    A structure that holds the components of an XML Namespaces qualified name.

    To be used correctly, the strings must be identical references for equal strings. Within the parser, these values are considered symbols and should always be retrieved from the SymbolTable. @see org.apache.xerces.util.SymbolTable @author Andy Clark, IBM @version $Id: QName.java 447247 2006-09-18 05:23:52Z mrglavas $

  • net.sf.saxon.s9api.QName
    The QName class represents an instance of xs:QName, as defined in the XPath 2.0 data model. Internally, it has three components, a namespace URI, a local name, and a prefix. The prefix is intended to be used only when converting the value back to a string.

    This class also defines a number of QName-valued constants relating to built-in types in XML Schema

    A QName is immutable.

    Note that a QName is not itself an {@link XdmItem} in this model; however it can be wrapped in anXdmItem.

  • org.alfresco.service.namespace.QName
  • org.apache.axis.utils.QName
    @author Doug Davis (dug@us.ibm.com) @author James Snell (jasnell@us.ibm.com)
  • org.apache.commons.jxpath.ri.QName
    A qualified name: a combination of an optional namespace prefix and an local name. @author Dmitri Plotnikov @version $Revision: 1.6 $ $Date: 2003/03/11 00:59:19 $
  • org.apache.fop.util.QName
    Represents a qualified name of an XML element or an XML attribute.

    Note: This class allows to carry a namespace prefix but it is not used in the equals() and hashCode() methods.

  • org.apache.jackrabbit.name.QName
    Qualified name. A qualified name is a combination of a namespace URI and a local part. Instances of this class are used to internally represent the names of JCR content items and other objects within a content repository.

    A qualified name is immutable once created, although the prefixed JCR name representation of the qualified name can change depending on the namespace mappings in effect.

    This class also contains a number of common namespace and qualified name constants for the namespaces and names specified by the JCR specification.

    String representations

    The prefixed JCR name format of a qualified name is specified by section 4.6 of the the JCR 1.0 specification (JSR 170) as follows:

     name                ::= simplename | prefixedname simplename          ::= onecharsimplename | twocharsimplename | threeormorecharname prefixedname        ::= prefix ':' localname localname           ::= onecharlocalname | twocharlocalname | threeormorecharname onecharsimplename   ::= (* Any Unicode character except: '.', '/', ':', '[', ']', '*', ''', '"', '|' or any whitespace character *) twocharsimplename   ::= '.' onecharsimplename | onecharsimplename '.' | onecharsimplename onecharsimplename onecharlocalname    ::= nonspace twocharlocalname    ::= nonspace nonspace threeormorecharname ::= nonspace string nonspace prefix              ::= (* Any valid XML Name *) string              ::= char | string char char                ::= nonspace | ' ' nonspace            ::= (* Any Unicode character except: '/', ':', '[', ']', '*', ''', '"', '|' or any whitespace character *) 

    In addition to the prefixed JCR name format, a qualified name can also be represented using the format "{namespaceURI}localPart".

  • org.apache.soap.util.xml.QName
    A QName represents a fully-qualified name. @author Matthew J. Duftler (duftler@us.ibm.com) @author Sanjiva Weerawarana (sanjiva@watson.ibm.com)
  • org.apache.util.QName
    A QName represents a fully-qualified name. @author Dirk Verbeeck
  • org.apache.webdav.lib.util.QName
    A QName represents a fully-qualified name.
  • org.apache.xalan.xpath.xml.QName
    Class to represent a qualified name: "The name of an internal XSLT object, specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]), an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]), a locale (see [14.3 Number Formatting]), a variable or a parameter (see [12 Variables and Parameters]) is specified as a QName. If it has a prefix, then the prefix is expanded into a URI reference using the namespace declarations in effect on the attribute in which the name occurs. The expanded name consisting of the local part of the name and the possibly null URI reference is used as the name of the object. The default namespace is not used for unprefixed names."
  • org.apache.xerces.utils.QName
    QName structure useful for gathering the parts of a qualified name. @author Andy Clark @version $Id: QName.java,v 1.2 2000/05/17 18:32:51 jeffreyr Exp $
  • org.apache.xerces.xni.QName
    A structure that holds the components of an XML Namespaces qualified name.

    To be used correctly, the strings must be identical references for equal strings. Within the parser, these values are considered symbols and should always be retrieved from the SymbolTable. @see org.apache.xerces.util.SymbolTable @author Stubs generated by DesignDoc on Wed Jun 07 11:58:44 PDT 2000 @author Andy Clark, IBM @version $Id: QName.java,v 1.1.2.3 2000/10/10 08:04:57 andyc Exp $

  • org.apache.xml.utils.QName
    Class to represent a qualified name: "The name of an internal XSLT object, specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]), an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]), a locale (see [14.3 Number Formatting]), a variable or a parameter (see [12 Variables and Parameters]) is specified as a QName. If it has a prefix, then the prefix is expanded into a URI reference using the namespace declarations in effect on the attribute in which the name occurs. The expanded name consisting of the local part of the name and the possibly null URI reference is used as the name of the object. The default namespace is not used for unprefixed names."
  • org.apache.xmlgraphics.util.QName
    Represents a qualified name of an XML element or an XML attribute.

    Note: This class allows to carry a namespace prefix but it is not used in the equals() and hashCode() methods.

  • org.camunda.bpm.model.xml.impl.util.QName
    @author Daniel Meyer
  • org.dom4j.QName

    QName represents a qualified name value of an XML element or attribute. It consists of a local name and a {@link Namespace}instance. This object is immutable.

    @author James Strachan
  • org.eclipse.emf.ecore.xml.type.internal.QName
    An internal extension of Java's QName that allows the prefix to be updated. If not specified, the prefix is set to empty string (""). If not specified, the namespace uri is set to empty string ("");

    NOTE: this class is for internal use only.

  • org.exist.dom.QName
    Represents a QName, consisting of a local name, a namespace URI and a prefix. @author Wolfgang
  • org.exoplatform.commons.utils.QName
    Created by The eXo Platform SAS . Qualified name @author Gennady Azarenkov @version $Id: $
  • org.jboss.mbui.model.structure.QName
    @author Harald Pehl @date 11/14/2012
  • org.jibx.runtime.QName

    Representation of a qualified name. This includes the JiBX serializer/deserializer methods for the representation. It assumes that the actual namespace declarations are being handled separately for marshalling

    Note that this implementation treats only the namespace and local name as significant for purposes of comparing values. The prefix is held only as a convenience, and the actual prefix used when writing a value may differ from the prefix defined by the instance.

    @author Dennis M. Sosnoski
  • org.lilyproject.repository.api.QName
    A qualified name. A qualified name consists of a namespace and a name.

    Qualifed names are used within the repository schema, see {@link FieldType}.

    They allow to re-use existing vocabularies (e.g. dublin core) without name clashes.

  • org.useware.kernel.model.structure.QName
    @author Harald Pehl @date 11/14/2012
  • org.wso2.javascript.xmlimpl.QName
  • tv.porst.swfretools.parser.structures.QName

  • Examples of com.caucho.xml.QName

       
          XslNode literal = createChild(top);

          XslTemplate template = new XslTemplate();
          template.setGenerator((JavaGenerator) this);
          template.addAttribute(new QName("match"), "/");
          template.addChild(literal);

          template.generateDeclaration(getOut());
       
          template.generate(getOut());
    View Full Code Here

    Examples of com.dbxml.xml.QName

             attrs.addAttribute(uri, qname.getLocalName(), qname.getName(), "", value);
       }

       public void procInst(DocumentTableEntry entry) throws Exception {
          int symID = entry.getValID();
          QName qname = symbols.getQName(symID);
          entry = processor.next();
          int valID = entry.getValID();
          String data = table.getValue(valID).toString();
          processor.next(); // Eat the OBJ_END_PROCINST
          content.processingInstruction(qname.getName(), data);
       }
    View Full Code Here

    Examples of com.google.gdata.model.QName

      @SuppressWarnings("deprecation")
      private static void addOssTransform(MetadataRegistry registry,
          ElementKey<?, ?> key) {
        registry.build(key, V1_CONTEXT).setName(
            new QName(Namespaces.openSearchNs, key.getId().getLocalName()));
      }
    View Full Code Here

    Examples of com.laamella.snelxml.crap.QName

                final String prefix = prefixer.getPrefixForNamespace(element.name.namespace);
                writer.writeStartElement(prefix, element.name.localPart, element.name.namespace);
            }
            if (element.isComplex()) {
                for (final Node attribute : element.attributes) {
                    final QName name = attribute.name;
                    if (name.namespace.equals("")) {
                        writer.writeAttribute(name.localPart, generateSampleFor(attribute.type));
                    } else {
                        final String prefix = prefixer.getPrefixForNamespace(name.namespace);
                        writer.writeAttribute(prefix, name.namespace, name.localPart, generateSampleFor(attribute.type));
    View Full Code Here

    Examples of com.sun.org.apache.xerces.internal.xni.QName

                            oneAttr.dvIndex != DT_XPATH1) {
                            XSSimpleType dv = fExtraDVs[oneAttr.dvIndex];
                            Object avalue = dv.validate(attrVal, schemaDoc.fValidationContext, null);
                            // kludge to handle chameleon includes/redefines...
                            if (oneAttr.dvIndex == DT_QNAME) {
                                QName qname = (QName)avalue;
                                if(qname.prefix == XMLSymbols.EMPTY_STRING && qname.uri == null && schemaDoc.fIsChameleonSchema)
                                    qname.uri = schemaDoc.fTargetNamespace;
                            }
                            attrValues[oneAttr.valueIndex] = avalue;
                        } else {
    View Full Code Here

    Examples of com.sun.org.apache.xml.internal.utils.QName

       * defaults to true.
       */
      public Arg()
      {

        m_qname = new QName("");
        ;  // so that string compares can be done.
        m_val = null;
        m_expression = null;
        m_isVisible = true;
        m_isFromWithParam = false;
    View Full Code Here

    Examples of com.volantis.xml.namespace.QName

                    }

                    // Resolve the value to an ExpandedName, update the value for
                    // the current element and store it away just in case it is
                    // needed for descendant elements.
                    QName qname = new ImmutableQName(value);
                    selidName = pipelineContext.getNamespacePrefixTracker()
                            .resolveQName(qname, null);
                    state.setSelidName(selidName);
                }
            }
    View Full Code Here

    Examples of fi.luomus.commons.containers.Qname

          .addParameter("predicate", "rdf:type")
          .addParameter("object", "dc:BibliographicResource");

          Document doc = client.contentAsDocument(new HttpGet(uri.getURI()));
          for (Node node : doc.getRootNode().getChildNodes()) {
            Qname id = getObjectResourceQname(node);
            LocalizedText name = getNames(node);
            Qname rootTaxon = getRooTaxonOrNull(node);
            Qname owner = getOwnerOrNull(node);
            boolean isPublic = getPublicityDefaultToTrue(node);
            Checklist checklist = new Checklist(id, name, rootTaxon);
            checklist.setPublic(isPublic);
            if (owner != null) {
              checklist.setOwner(owner);
    View Full Code Here

    Examples of flex2.compiler.util.QName

                        {
                            String s = inherited.get(j).toString().intern();
                            //Make sure that the inheritance list doesn't contain itself or a package.
                            if (!s.equals(debug) && !s.equals(otherPackage))
                            {
                                QName q = new QName(s);
                                if (!q.getLocalPart().equals(""))
                                {
                                    assert !((q.getLocalPart().equals(cls)) && (q.getNamespace().equals(pkg))) : "same class";
                                    inherit.add(q);
                                }
                            }
                        }
                    }
                }
                else if (current.def instanceof FunctionDefinitionNode)
                {
                    FunctionDefinitionNode fd = (FunctionDefinitionNode)current.def;
                    debug = fd.fexpr.debug_name;
                    int colon = debug.indexOf(':');
                    int slash = debug.indexOf('/');
                    if (colon < 0)
                    {
                        pkg = "";
                        if (slash < 0) //when there's only a name (Ex. debug == Foobar)
                            cls = "";
                        else  //when there happens to be a slash (Ex. debug == Class/Function)
                            cls = debug.substring(0, slash).intern();
                    }
                    else
                    {
                        pkg = debug.substring(0, colon).intern();
                        if (slash < 0)   //when you have debug == packageName:Function
                            cls = "";
                        else if (slash < colon//when debug == className/private:something (mxml case)
                        {
                            pkg = "";
                            cls = debug.substring(0, slash).intern();
                        }
                        else  //when debug == packageName:className/Function
                            cls = debug.substring(colon + 1, slash).intern();
                    }
                }
                else if (current.def instanceof VariableDefinitionNode)
                {
                    VariableBindingNode vb = (VariableBindingNode)(((VariableDefinitionNode)current.def).list.items.get(0));
                    debug = vb.debug_name;
                    int colon = debug.indexOf(':');
                    int slash = debug.indexOf('/');
                    if (colon < 0)
                    {
                        pkg = "";
                        if (slash < 0)
                            cls = "";
                        else
                            cls = debug.substring(0, slash).intern();
                    }
                    else
                    {
                        pkg = debug.substring(0, colon).intern();
                        if (slash < 0)
                            cls = "";
                        else if (slash < colon)
                        {
                            pkg = "";
                            cls = debug.substring(0, slash).intern();
                        }
                        else
                            cls = debug.substring(colon + 1, slash).intern();
                    }
                }
                //Add to list for other classes (they will be in a separate package)
                if (!pkg.equals(packageName))
                {
                    if (cls.equals(""))
                        cls = "null";
                    List<DocCommentNode> l = otherClasses.get(cls);
                    if (l == null)
                        l = new ArrayList<DocCommentNode>();
                    l.add(current);
                    otherClasses.put(cls, l);
                }
                else  //Add to list for public class
                    mainClass.add(current);
            }
           
            if (mainDef//there exists a public class definition
                this.put(name, mainClass, inheritance, exclude, cx, abcClass);
            else    //null classname for package level functions
                this.put(new QName(packageName, "null"), mainClass, inheritance, exclude, cx, abcClass);
           
            //for classes outside the package but in the same sourcefile (should be private, but we exclude anyway)
            if (otherPackage != null)
            {
                Iterator<String> iter = otherClasses.keySet().iterator();
                while (iter.hasNext())
                {
                    //Add other classes under asc generated package name
                    String cls = iter.next().intern();
                    this.put(new QName(otherPackage, cls), otherClasses.get(cls), otherInheritance.get(cls), true, cx, abcClass);
                }
            }
           
            //This is to ensure that the packageTable contains all the package names (as keys).
            if (!packageTable.containsKey(packageName))
    View Full Code Here

    Examples of groovy.xml.QName

        public static Element appendNode(Element self, Object name, String value) {
            Document doc = self.getOwnerDocument();
            Element newChild;
            if (name instanceof QName) {
                QName qn = (QName) name;
                newChild = doc.createElementNS(qn.getNamespaceURI(), qn.getQualifiedName());
            } else {
                newChild = doc.createElement(name.toString());
            }
            if (value != null) {
                Text text = doc.createTextNode(value);
    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.