Package oracle.xml.parser.schema

Examples of oracle.xml.parser.schema.XSDSimpleType


            // wanneer expliciet anyType is opgegeven dan hele XML element exposen
            if (explicitAnyType) {
                final AttributeDef attrDef = createDCAttribute(safeElementName, attrParent, "org.w3c.dom.Element");
                addAttributeProperties(attrDef, element, type.getQName(), leafNodeType);
            } else {
                final XSDSimpleType simpleType = (XSDSimpleType) type;
                final AttributeDef attrDef =
                    createDCAttribute(safeElementName, attrParent, getTypeMapper().getJavaType(simpleType));
                addAttributeProperties(attrDef, element, getTypeMapper().getMappableType(simpleType), leafNodeType);
            }
        } else if (type instanceof XSDComplexType) { // complexType (niet anyType) als accessor met structure maken
View Full Code Here


        final MovableStructureDef structDef = createDCStructure(accessor);
        addStructureProperties(structDef, type);

        if (type.isSimpleContent()) {
            // Fake attribute _value for the SimpleContent for this complexType
            final XSDSimpleType simpleType = type.getSimpleType();
            final AttributeDef attrDef =
                createDCAttribute(SIMPLETYPE_ATTRIBUTE, structDef, getTypeMapper().getJavaType(simpleType));
            addAttributeProperties(attrDef, /*attrOrElem*/null, getTypeMapper().getMappableType(simpleType),
                                   LeafNodeType.ELEMENT);
        }
View Full Code Here

    }

    protected AttributeDef resolveAttribute(final XSDAttribute attribute, final MovableStructureDef parent) {
        // TODO: kunnen we code delen met resolveElement bij een simpleType???

        XSDSimpleType simpleType = (XSDSimpleType) attribute.getType();
        if (isAnyType(simpleType) && !hasTypeAttribute(attribute)) {
            simpleType = null;
        }
        final AttributeDef attrDef =
            createDCAttribute(Utility.normalizeString(attribute.getName()), parent,
View Full Code Here

            }
        }
    }

    private void init(XSDAttribute xsdAttribute) {
        XSDSimpleType type = (XSDSimpleType) xsdAttribute.getType();
        if (QNAME_ANYSIMPLETYPE.equals(type.getQName()) &&
            (type.getDomNode().getAttribute(XSDConstantValues._type) == null ||
             type.getDomNode().getAttribute(XSDConstantValues._type).isEmpty())) {
            attributes.add(new TypelessAttributeAdapter(this, xsdAttribute.getName(), getTypeMapper()));
        } else {
            attributes.add(new AttributeAdapter(this, xsdAttribute.getName(), getTypeMapper(), xsdAttribute));
        }
    }
View Full Code Here

TOP

Related Classes of oracle.xml.parser.schema.XSDSimpleType

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.