Package oracle.xml.parser.schema

Examples of oracle.xml.parser.schema.XSDComplexType


                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
            final XSDComplexType complexType = (XSDComplexType) type;
            final AccessorDef accessorDef =
                createDCAccessor(safeElementName, parent, collection, SCALAR_COLLECTION_FALSE);
            addAccessorProperties(accessorDef, element);
            final MovableStructureDef structDef =
                resolveComplexType(complexType, accessorDef); // maak StructureDefinition
View Full Code Here


    public MovableStructureDefinition buildStructure(XSDNode node, String structName, TypeMapper typeMapper) {
        this.typeMapper = typeMapper;
        // resolveComplexType requires an accessor as parent. As a workaround we create a temporary parent StructureDef
        // with a temporary AccessorDef. We can use these as parents for calling resolveComplexType. Once that is done
        // we remove the temporary AccessorDef as parent of the created StructureDef before returning it.
        final XSDComplexType complexType =
            (XSDComplexType) (node instanceof XSDElement ? ((XSDElement) node).getType() : node);
        final String parentName = structName.substring(0, structName.lastIndexOf('.'));
        final String accessorName = structName.substring(structName.lastIndexOf('.') + 1);
        final MovableStructureDef tempStruct = createDCStructure(null, parentName);
        final boolean collection = node instanceof XSDElement ? isCollection((XSDElement) node) : false;
View Full Code Here

public class LazyStructureProvider extends ProviderImpl implements StructureProvider {

    @Override
    public MovableStructureDefinition buildStructure(XSDNode node, String structName, TypeMapper typeMapper) {
        XSDComplexType type = (XSDComplexType) (node instanceof XSDComplexType ? node : ((XSDElement) node).getType());
        return new ComplexTypeAdapter(null, structName, typeMapper, type);
    }
View Full Code Here

TOP

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

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.