Package oracle.binding.meta

Examples of oracle.binding.meta.AccessorDefinition


            }
        }
        for (Iterator iter = structDef.getAccessorDefinitions().iterator(); iter.hasNext();) {
            Object obj = iter.next();
            if (obj instanceof AccessorDefinition) {
                AccessorDefinition acc = (AccessorDefinition) obj;
                accessors.put(acc.getName(), new Accessor(acc));
            }
        }
    }
View Full Code Here


     *         In case of a singular an instance of the XMLDCElement if the child
     *         object exist, if the child object doesn't exist <code>null</code>.
     */
    protected XMLDCAccessorTarget resolveAccessor(final Accessor accessor) {
        if (accessor.target == null) {
            AccessorDefinition accessorDef = accessor.def;
            if (accessorDef.isCollection()) { // accessor is a collection
                accessor.target = new XMLDCCollection(dc, accessorDef, element);
            } else { // accessor to a singular object
                Node childNode =
                    Utils.findFirstChildElement(element, accessor.getXmlNamespaceUri(), accessor.getXmlName());
                if (childNode != null) {
                    accessor.target = new XMLDCElement(dc, accessorDef.getStructure(), (Element) childNode);
                } else {
                    accessor.target = XMLDCElement.Accessor.NOT_FOUND;
                }
            }
        }
View Full Code Here

     * @param accessors Accessors within a StructurDef.
     * @see StructureDef#getAccessorDefinitions
     */
    private void customizeAccessors(final DefinitionContainer accessors) {
        for (Iterator iterator = accessors.iterator(); iterator.hasNext();) {
            AccessorDefinition accessor = (AccessorDefinition) iterator.next();
            StructureDefinition struct = accessor.getStructure();
            if (struct instanceof StructureDef) {
                customize((StructureDef) struct);
            }
        }
    }
View Full Code Here

TOP

Related Classes of oracle.binding.meta.AccessorDefinition

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.