Examples of Namespaces


Examples of org.apache.struts2.convention.annotation.Namespaces

            namespaces.add(namespaceAnnotation.value());
        }

        //multiple annotations
        Namespaces namespacesAnnotation = AnnotationTools.findAnnotation(actionClass, Namespaces.class);
        if (namespacesAnnotation != null) {
            if (LOG.isTraceEnabled()) {
                StringBuilder sb = new StringBuilder();
                for (Namespace namespace : namespacesAnnotation.value())
                    sb.append(namespace.value()).append(",");
                sb.deleteCharAt(sb.length() - 1);
                LOG.trace("Using non-default action namespaces from Namespaces annotation of [#0]", sb.toString());
            }

            for (Namespace namespace : namespacesAnnotation.value())
                namespaces.add(namespace.value());
        }

        //don't use default if there are annotations
        if (!namespaces.isEmpty())
View Full Code Here

Examples of org.apache.struts2.convention.annotation.Namespaces

            namespaces.add(namespaceAnnotation.value());
        }

        //multiple annotations
        Namespaces namespacesAnnotation = AnnotationUtils.findAnnotation(actionClass, Namespaces.class);
        if (namespacesAnnotation != null) {
            if (LOG.isTraceEnabled()) {
                StringBuilder sb = new StringBuilder();
                for (Namespace namespace : namespacesAnnotation.value())
                    sb.append(namespace.value()).append(",");
                sb.deleteCharAt(sb.length() - 1);
                LOG.trace("Using non-default action namespaces from Namespaces annotation of [#0]", sb.toString());
            }

            for (Namespace namespace : namespacesAnnotation.value())
                namespaces.add(namespace.value());
        }

        //don't use default if there are annotations
        if (!namespaces.isEmpty())
View Full Code Here

Examples of org.apache.synapse.mediators.annotations.Namespaces

     * and the default Namespace annotation on the command class.
     */
    protected Map<String, String> getNamespaces(Namespaces namespaces) {
        Map<String, String> allNamespaces = new HashMap<String, String>();
       
        Namespaces defaultNamespaces = ((Class<?>)getCommand()).getAnnotation(Namespaces.class);

        // First add any default namespaces
        if (defaultNamespaces != null) {
            for (String namespaceValue : defaultNamespaces.value()) {
                int i = namespaceValue.indexOf(':');
                if (i > 0) {
                    String prefix = namespaceValue.substring(0, i);
                    String namespace = namespaceValue.substring(i+1);
                    allNamespaces.put(prefix, namespace);
View Full Code Here

Examples of org.enhydra.shark.xpdl.elements.Namespaces

            ph.setXPDLVersion("1.0");
            ph.setVendor("Together");
        }
        ph.setCreated(Utils.getCurrentDateAndTime());

        Namespaces nss = pkg.getNamespaces();
        Namespace ns = createXPDLObject(nss, "", true);
        ns.setName("xpdl");
        ns.setLocation("http://www.wfmc.org/2002/XPDL1.0");
        adjustXPDLObject(pkg, type);
View Full Code Here

Examples of org.eweb4j.spiderman.xml.Namespaces

            }
      public String getNamespaceURI(String prefix) {
        if (prefix == null)
          throw new NullPointerException("Null prefix");
        else {
              Namespaces nss = target.getModel().getNamespaces();
              if (nss != null) {
                List<NSMap> nsList = nss.getNamespace();
                if (nsList != null) {
                  for (NSMap ns : nsList){
                    if (prefix.equals(ns.getPrefix()))
                      return ns.getUri();
                  }
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

        _simpleTypes      = new Hashtable();
        _elements         = new Hashtable();
        _groups           = new Hashtable();
        _importedSchemas  = new Hashtable();
        _includedSchemas  = new Vector();
        _namespaces       = new Namespaces();
        _redefineSchemas  = new Hashtable();
        _cachedincludedSchemas = new Hashtable();

        _schemaNamespace = schemaNS;
        if (_schemaNamespace == null) {
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

    //----------------/

    public Sax2ComponentReader(ComponentReader compReader) {
        super();
        _compReader = compReader;
        _namespaces = new Namespaces();
    } //-- Sax2ComponentReader
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

    public void startElement(String name, AttributeList atts)
        throws org.xml.sax.SAXException
    {
        //-- create new Namespace scope
        Namespaces nsDecls = _namespaces.createNamespaces();
        _namespaces = nsDecls;

        //-- handle namespaces
        AttributeSet attSet = processAttributeList(atts);
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

        }



        //-- namespace declarations
        Namespaces namespaces = schema.getNamespaces();
        Enumeration keys = namespaces.getLocalNamespacePrefixes();
        while (keys.hasMoreElements()) {
            String nsPrefix = (String)keys.nextElement();
            if (!nsPrefix.equals(schemaPrefix)) {
                String ns = namespaces.getNamespaceURI(nsPrefix);
                if (nsPrefix.length() > 0) {
                    _atts.addAttribute(XMLNS_PREFIX + nsPrefix, CDATA, ns);
                }
                else {
                    _atts.addAttribute(XMLNS_DEFAULT, CDATA, ns);
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

     * @param context a namespace context
     */
    public AnyNode2SAX(final AnyNode node, final Namespaces context) {
        _elements = new HashSet();
        _node     = node;
        _context  = (context == null) ? new Namespaces() : context;
    }
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.