Examples of NamespaceInfo


Examples of org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceInfo

      CMDocument document = ContentModelManager.getInstance().createCMDocument(URIHelper.getURIForFilePath(grammarURI), "xsd"); //$NON-NLS-1$
      if(document != null) {
        List namespaceInfoList = (List) document.getProperty("http://org.eclipse.wst/cm/properties/namespaceInfo"); //$NON-NLS-1$
        if(namespaceInfoList != null) {
          NamespaceInfo info = (NamespaceInfo) namespaceInfoList.get(0);
          if(info != null) {
            if ((uriField.getText().trim().length() == 0) && (info.uri != null)) {
              uriField.setText(info.uri);
            }
            if ((prefixField.getText().trim().length() == 0) && (info.prefix != null)) {
View Full Code Here

Examples of org.geoserver.catalog.NamespaceInfo

            String local = s.substring(i + 1);
           
            //first match the prefix back to a uri, since the prefix might not match the one
            // used by the catalog
            String namespaceURI = namespaceContext.getNamespaceURI(prefix);
            NamespaceInfo nsInfo = null;
            if (namespaceURI != null) {
                nsInfo = data.getNamespaceByURI(namespaceURI);
            }
            else {
                //fall back to just looking up by prefix
                nsInfo = data.getNamespaceByPrefix(prefix);
            }
           
            if (nsInfo != null) {
                return new QName(nsInfo.getURI(), local, nsInfo.getPrefix());
            }
           
            return new QName(namespaceURI, local, prefix);
        }
View Full Code Here

Examples of org.openquark.util.xml.NamespaceInfo

     * Attach an attribute declaring the gem namespace: "xmlns:gem=..."
     * Creation date: (Jun 12, 2002 11:22:20 AM)
     * @param element Element the element to which to attach the namespace declaration.
     */
    private static void declareNamespace(Element element) {
        NamespaceInfo namespaceInfo = new NamespaceInfo (BAM_NS, BAM_NS_PREFIX);
       
        XMLPersistenceHelper.attachNamespaceAndSchema(element, namespaceInfo, null, null);
    }
View Full Code Here

Examples of org.vfny.geoserver.global.NameSpaceInfo

        //
        WFS wfs = request.getWFS();
        GeoServer config = wfs.getGeoServer();
        Data catalog = wfs.getData();
        FeatureTypeInfo meta = null;
        NameSpaceInfo namespace;
        Query query;

        FeatureSource source;
        Feature feature;
        String fid;
View Full Code Here

Examples of tv.porst.swfretools.parser.structures.NamespaceInfo

      final QName qname = (QName) multinameInfo.getData();

      final int ns = qname.getNs().value();
      final int nameIndex = qname.getName().value();

      final NamespaceInfo namespace = resolveNamespace(ns, namespaceList);

      if (namespace == null) {
        return new String[0];
      }

      final int namespaceNameIndex = namespace.getName().value();
      final String namespaceName = resolveString(namespaceNameIndex, constantPool);

      final String name = resolveString(nameIndex, constantPool);

      return new String[] { namespaceName, name };
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.