Examples of FunctionMetadata


Examples of org.apache.poi.ss.formula.function.FunctionMetadata

    retval[363] = MinaMaxa.MINA;

    for (int i = 0; i < retval.length; i++) {
      Function f = retval[i];
      if (f == null) {
        FunctionMetadata fm = FunctionMetadataRegistry.getFunctionByIndex(i);
        if (fm == null) {
          continue;
        }
        retval[i] = new NotImplementedFunction(fm.getName());
      }
    }
    return retval;
  }
View Full Code Here

Examples of org.jboss.metadata.web.spec.FunctionMetaData

* @author Remy Maucherat
*/
public class FunctionMetaDataParser extends MetaDataElementParser {

    public static FunctionMetaData parse(XMLStreamReader reader) throws XMLStreamException {
        FunctionMetaData function = new FunctionMetaData();

        // Handle attributes
        final int count = reader.getAttributeCount();
        for (int i = 0; i < count; i ++) {
            final String value = reader.getAttributeValue(i);
            if (reader.getAttributeNamespace(i) != null) {
                continue;
            }
            final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
            switch (attribute) {
                case ID: {
                    function.setId(value);
                    break;
                }
                default: throw unexpectedAttribute(reader, i);
            }
        }

        DescriptionGroupMetaData descriptionGroup = new DescriptionGroupMetaData();
        // Handle elements
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            if (DescriptionGroupMetaDataParser.parse(reader, descriptionGroup)) {
                if (function.getDescriptionGroup() == null) {
                    function.setDescriptionGroup(descriptionGroup);
                }
                continue;
            }
            final Element element = Element.forName(reader.getLocalName());
            switch (element) {
                case NAME:
                    function.setName(reader.getElementText());
                    break;
                case FUNCTION_CLASS:
                    function.setFunctionClass(reader.getElementText());
                    break;
                case FUNCTION_SIGNATURE:
                    function.setFunctionSignature(reader.getElementText());
                    break;
                case EXAMPLE:
                    List<String> examples = function.getExamples();
                    if (examples == null) {
                        examples = new ArrayList<String>();
                        function.setExamples(examples);
                    }
                    examples.add(reader.getElementText());
                    break;
                case FUNCTION_EXTENSION:
                    List<TldExtensionMetaData> extensions = function.getFunctionExtensions();
                    if (extensions == null) {
                        extensions = new ArrayList<TldExtensionMetaData>();
                        function.setFunctionExtensions(extensions);
                    }
                    extensions.add(TldExtensionMetaDataParser.parse(reader));
                    break;
                default: throw unexpectedElement(reader);
            }
View Full Code Here

Examples of org.openquark.cal.metadata.FunctionMetadata

        } else if (userObject instanceof CollectorGem) {
            // Start with the open html tag
            String toolTip = "<html>";
            
            // If available add the metadata short description      
            FunctionMetadata metadata = ((CollectorGem)userObject).getDesignMetadata();
            String shortDescription = metadata.getShortDescription();
            if (shortDescription != null && shortDescription.length() > 0) {
                toolTip += "<p>" +  shortDescription + "</p>";
            }

            // Stick in the result type information
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.