Package org.openquark.cal.services

Examples of org.openquark.cal.services.CALFeatureName


        } else if (method == NavAddress.COLLECTOR_METHOD) {
            CollectorGem collector = owner.getCollector(address.getBase());
            metadata = collector != null ? collector.getDesignMetadata() : null;
           
        } else {
            CALFeatureName featureName = address.toFeatureName();
            CALWorkspace workspace = owner.getPerspective().getWorkspace();
           
            if (workspace.getMetaModule(featureName.toModuleName()) != null) {
                metadata = workspace.getMetadata(featureName, owner.getLocaleForMetadata());
            } else {
                return null;
            }
        }
View Full Code Here


           
            return isMetadataValid(entity, (FunctionalAgentMetadata) metadata);
           
        } else if (method == NavAddress.INSTANCE_METHOD_METHOD) {

            CALFeatureName featureName = address.toFeatureName();
            QualifiedName typeClassName = featureName.toInstanceIdentifier().getTypeClassName();
            String methodName = featureName.toInstanceMethodName();
            QualifiedName classMethodName = QualifiedName.make(typeClassName.getModuleName(), methodName);
           
            GemEntity entity = owner.getPerspective().getWorkspace().getGemEntity(classMethodName);
           
            if (entity == null) {
View Full Code Here

           
            return typeStrings;
           
        } else if (method == NavAddress.INSTANCE_METHOD_METHOD) {
           
            CALFeatureName featureName = address.toFeatureName();
            String methodName = featureName.toInstanceMethodName();

            ClassInstance instance = owner.getPerspective().getMetaModule(featureName.toModuleName()).getTypeInfo().getClassInstance(featureName.toInstanceIdentifier());
           
            TypeExpr[] typePieces = instance.getInstanceMethodType(methodName).getTypePieces();
            String[] typeStrings = new String[typePieces.length];           
            PolymorphicVarContext polymorphicVarContext = PolymorphicVarContext.make();
           
View Full Code Here

                return methodName;
            }
           
        } else {
           
            CALFeatureName featureName = metadata.getFeatureName();
            ScopedEntity entity = owner.getPerspective().getWorkspace().getScopedEntity(featureName);

            if (metadata.getDisplayName() != null) {
                return metadata.getDisplayName();
               
View Full Code Here

        if (address.getMethod() == NavAddress.COLLECTOR_METHOD) {
            CollectorGem collector = owner.getCollector(address.getBase());
            adjustArgumentNames(collector, arguments);
           
        } else if (address.getMethod() == NavAddress.INSTANCE_METHOD_METHOD) {
            CALFeatureName featureName = address.toFeatureName();
            ModuleName typeClassModuleName = featureName.toInstanceIdentifier().getTypeClassName().getModuleName();
            String methodName = featureName.toInstanceMethodName();
           
            CALWorkspace workspace = owner.getPerspective().getWorkspace();
            GemEntity entity = workspace.getGemEntity(QualifiedName.make(typeClassModuleName, methodName));
            ClassInstance instance = workspace.getClassInstance(CALFeatureName.getClassInstanceFeatureName(featureName.toInstanceIdentifier(), featureName.toModuleName()));
           
            adjustArgumentNames(entity, instance.getMethodCALDocComment(methodName), arguments);
           
        } else {
            GemEntity entity = owner.getPerspective().getWorkspace().getGemEntity(address.toFeatureName().toQualifiedName());
View Full Code Here

TOP

Related Classes of org.openquark.cal.services.CALFeatureName

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.