Package oracle.binding.meta

Examples of oracle.binding.meta.Definition


        this.simpleName = simpleName;
    }

    @Override
    public String getFullName() {
        Definition parent = getDefinitionParent();
        if (!(parent instanceof NamedDefinition)) {
            throw new IllegalStateException("getFullName requires parent to be a NamedDefinition");
        }
        return ((NamedDefinition) parent).getFullName() + "." + getName();
    }
View Full Code Here


        return Collections.emptyMap();
    }

    public DataControlDefinition getDataControlDefinition() {
        // not required by interface or superclass, but is required by most implementers of this interface
        Definition parent = getDefinitionParent();
        if (parent instanceof StructureDefinition) {
            return ((StructureDefinition) parent).getDataControlDefinition();
        } else if (parent instanceof VariableDefinition) {
            return ((VariableDefinition) parent).getDataControlDefinition();
        } else if (parent instanceof DataControlDefinition) {
            return (DataControlDefinition) parent;
        } else if (parent == null) {
            return null;
        } else {
            throw new IllegalStateException("unsupported definition parent type " + parent.getClass());
        }
    }
View Full Code Here

TOP

Related Classes of oracle.binding.meta.Definition

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.