Package org.apache.xerces.util

Examples of org.apache.xerces.util.NamespaceSupport


                                    Class[] types = {
                                        XMLLocator.class, String.class,
                                        NamespaceContext.class, Augmentations.class
                                    };
                                    Method method = cls.getMethod("startDocument", types);
                                    NamespaceContext nscontext = new NamespaceSupport();
                                    Object[] params = {
                                        locator, encoding,
                                        nscontext, augs
                                    };
                                    method.invoke(fDocumentHandler, params);
View Full Code Here


            Object[] attrs = null;
            facet = DOMUtil.getLocalName(content);
            if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) {
                attrs = fAttrChecker.checkAttributes(content, false, schemaDoc, hasQName);
                String enumVal = (String)attrs[XSAttributeChecker.ATTIDX_VALUE];
                NamespaceSupport nsDecls = (NamespaceSupport)attrs[XSAttributeChecker.ATTIDX_ENUMNSDECLS];

                // for NOTATION types, need to check whether there is a notation
                // declared with the same name as the enumeration value.
                if (baseValidator.getVariety() == XSSimpleType.VARIETY_ATOMIC &&
                    baseValidator.getPrimitiveKind() == XSSimpleType.PRIMITIVE_NOTATION) {
View Full Code Here

     *
     * @param namespaces
     */
    public void setNamespaces (boolean namespaces){
        fNamespaces = namespaces;
        fNSBinder = new NamespaceSupport();
        fLocalNSBinder = new NamespaceSupport();
        fSymbolTable = new SymbolTable();
    }
View Full Code Here

            fNamespaceSupport = (NamespaceSupport)namespaceContext;
        }
        else {
            // REVISIT: this is a hack for the case user inserts component before
            //          DTD validator
            fNamespaceSupport = new NamespaceSupport();
        }

        if (fDocumentHandler != null) {
            fDocumentHandler.startDocument(locator, encoding, fNamespaceSupport, augs);
        }
View Full Code Here

     * fEmptySymbol, fXmlSymbol, fXmlnsSymbol, fNamespaceCounter, fFeatures.
     */
    public DOMWriterImpl(boolean namespaces) {
        serializer = new XMLSerializer();
        serializer.fNamespaces = namespaces;
        serializer.fNSBinder = new NamespaceSupport();
        serializer.fLocalNSBinder = new NamespaceSupport();
        serializer.fSymbolTable = new SymbolTable();
        serializer.fFeatures = new Hashtable();
        serializer.fFeatures.put(Constants.DOM_NORMALIZE_CHARACTERS, new Boolean(false));
        serializer.fFeatures.put(Constants.DOM_SPLIT_CDATA, new Boolean(true));
        serializer.fFeatures.put(Constants.DOM_VALIDATE, new Boolean(false));
View Full Code Here

        fAnonNum = 1000;
        fIDMap = new HashMap();
        fDefined = new Vector();
        fIndent = 0;
        fPSVINamespaceContext = new NamespaceSupport();
    } // reset(XMLComponentManager)
View Full Code Here

        serializer.fDOMFilter = filter;
    }

    // this initializes a newly-created serializer
    private void initSerializer(XMLSerializer ser) {
        ser.fNSBinder = new NamespaceSupport();
        ser.fLocalNSBinder = new NamespaceSupport();
        ser.fSymbolTable = new SymbolTable()
    }
View Full Code Here

     * @param namespaces
     */
    public void setNamespaces (boolean namespaces){
        fNamespaces = namespaces;
        if (fNSBinder == null) {
            fNSBinder = new NamespaceSupport();
            fLocalNSBinder = new NamespaceSupport();
            fSymbolTable = new SymbolTable();
        }
    }
View Full Code Here

        fComponents.put(ENTITY_MANAGER, fEntityManager);
       
        fErrorReporter = new XMLErrorReporter();
        fComponents.put(ERROR_REPORTER, fErrorReporter);
       
        fNamespaceContext = new NamespaceSupport();
        fComponents.put(NAMESPACE_CONTEXT, fNamespaceContext);
       
        fSchemaValidator = new XMLSchemaValidator();
        fComponents.put(SCHEMA_VALIDATOR, fSchemaValidator);
       
View Full Code Here

            Object[] attrs = null;
            facet = DOMUtil.getLocalName(content);
            if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) {
                attrs = fAttrChecker.checkAttributes(content, false, schemaDoc, hasQName);
                String enumVal = (String)attrs[XSAttributeChecker.ATTIDX_VALUE];
                NamespaceSupport nsDecls = (NamespaceSupport)attrs[XSAttributeChecker.ATTIDX_ENUMNSDECLS];
               
                // for NOTATION types, need to check whether there is a notation
                // declared with the same name as the enumeration value.
                if (baseValidator.getVariety() == XSSimpleType.VARIETY_ATOMIC &&
                        baseValidator.getPrimitiveKind() == XSSimpleType.PRIMITIVE_NOTATION) {
View Full Code Here

TOP

Related Classes of org.apache.xerces.util.NamespaceSupport

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.