Package oracle.adf.model.adapter.dataformat

Examples of oracle.adf.model.adapter.dataformat.AttributeDef


     */
    protected static void addNewAttributeToStructure(StructureDef structure, Method method, final String attrName,
                                                     boolean isReadonly,
                                                     boolean isKey) {
        // TODO: Factory class die we kunnen delen met XSDProcessor
        final AttributeDef attrDef =
            new AttributeDef(attrName, structure, method.getReturnType().getName(), isReadonly, isKey);
        structure.addAttribute(attrDef);
    }
View Full Code Here


            // TODO: kunnen we code delen met collectie van simpleType???
            // attribuut maken en deze toe voegen aan gegeven parent of "fake"
            // parent die we net gemaakt hebben igv collectie
            // 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
            final XSDComplexType complexType = (XSDComplexType) type;
View Full Code Here

        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);
        }
        for (XSDAttribute attribute : type.getAttributeDeclarations()) {
View Full Code Here

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

        return createDCStructure(parent, parent.getFullName());
    }

    protected AttributeDef createDCAttribute(final String name, final MovableStructureDef parent,
                                             final String javaType) {
        final AttributeDef attrDef = new AttributeDef(name, parent, javaType, READONLY_FALSE, KEY_FALSE);
        parent.addAttribute(attrDef);
        return attrDef;
    }
View Full Code Here

TOP

Related Classes of oracle.adf.model.adapter.dataformat.AttributeDef

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.