Examples of Namespaces


Examples of org.exolab.castor.xml.Namespaces

     * @param context a namespace context
     */
    public AnyNode2SAX2(final AnyNode node, final Namespaces context) {
        _elements = new HashSet();
        _node = node;
        _context = (context == null) ? new Namespaces() : context;
    }
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

    public DocumentHandlerAdapter(DocumentHandler handler) {
        if (handler == null) {
            throw new IllegalArgumentException("The argument 'handler' must not be null.");
        }
        _handler = handler;
        _namespaces = new Namespaces();
    }
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

        init();
    }

    private void init() {
        if (_context == null)
            _context = new Namespaces();
    }
View Full Code Here

Examples of org.exolab.castor.xml.Namespaces

            _nsPrefix = DEFAULT_PREFIX;
        }
        //-- find or declare namespace prefix
        else {
            _nsPrefix = null;
            Namespaces namespaces = _schema.getNamespaces();
            Enumeration enumeration = namespaces.getLocalNamespacePrefixes();
            while (enumeration.hasMoreElements()) {
                String key = (String) enumeration.nextElement();
                if (namespaces.getNamespaceURI(key).equals(Schema.DEFAULT_SCHEMA_NS)) {
                    _nsPrefix = key;
                    break;
                }
            }
            if (_nsPrefix == null) {
View Full Code Here

Examples of org.jboss.dna.connector.store.jpa.util.Namespaces

        ValueFactories valuesFactory = context.getValueFactories();
        this.stringFactory = valuesFactory.getStringFactory();
        this.pathFactory = valuesFactory.getPathFactory();
        this.nameFactory = valuesFactory.getNameFactory();
        this.uuidFactory = valuesFactory.getUuidFactory();
        this.namespaces = new Namespaces(entityManager);
        this.workspaces = new Workspaces(entityManager);
        this.rootNodeUuid = rootNodeUuid;
        this.rootNodeUuidString = this.rootNodeUuid.toString();
        this.nameOfDefaultWorkspace = nameOfDefaultWorkspace;
        this.creatingWorkspacesAllowed = creatingWorkspacesAllowed;
View Full Code Here

Examples of org.lilyproject.tools.import_.json.Namespaces

        String action = JsonUtil.getString(postNode, "action");
        List<MutationCondition> conditions;
        Object entity = null;

        try {
            Namespaces namespaces = NamespacesConverter.fromContextJsonIfAvailable(postNode);

            conditions = readMutationConditions(postNode, namespaces);

            // Hardcoded behavior that action 'delete' does not need a submitted entity (and any other does)
            if (!action.equals("delete")) {
View Full Code Here

Examples of org.springframework.ws.server.endpoint.annotation.Namespaces

    }

    private static void addNamespaceAnnotations(AnnotatedElement annotatedElement,
                                                SimpleNamespaceContext namespaceContext) {
        if (annotatedElement.isAnnotationPresent(Namespaces.class)) {
            Namespaces namespacesAnn = annotatedElement.getAnnotation(Namespaces.class);
            for (Namespace namespaceAnn : namespacesAnn.value()) {
                namespaceContext.bindNamespaceUri(namespaceAnn.prefix(), namespaceAnn.uri());
            }
        }
        if (annotatedElement.isAnnotationPresent(Namespace.class)) {
            Namespace namespaceAnn = annotatedElement.getAnnotation(Namespace.class);
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.