Class GraphNodeMetaData


  • public class GraphNodeMetaData
    extends java.lang.Object
    Provides generic meta-data for generating a Model.
    Author:
    Daniel Sagenschneider
    • Constructor Detail

      • GraphNodeMetaData

        public GraphNodeMetaData​(java.lang.String license,
                                 java.io.File rawRootDir)
        Top level constructor.
        Parameters:
        license - License.
        rawRootDir - Root directory containing the raw models.
      • GraphNodeMetaData

        public GraphNodeMetaData​(GraphNodeMetaData parent,
                                 java.lang.String childPath)
        Child constructor for relative path.
        Parameters:
        parent - Parent GraphNodeMetaData.
        childPath - Path for this child.
    • Method Detail

      • capitalise

        public static java.lang.String capitalise​(java.lang.String text)
        Returns the input text capitalised.
        Parameters:
        text - Text.
        Returns:
        Capitalised text.
      • camelCase

        public static java.lang.String camelCase​(java.lang.String text)
        Returns the input text in camel case.
        Parameters:
        text - Text to be transformed to camel case.
        Returns:
        Camel case text.
      • propertyCase

        public static java.lang.String propertyCase​(java.lang.String text)
        Returns the input text in case ready for properties.
        Parameters:
        text - Text.
        Returns:
        Property text.
      • titleCase

        public static java.lang.String titleCase​(java.lang.String text)
        Returns the input text in sentence case.
        Parameters:
        text - Text.
        Returns:
        Sentence case text.
      • getLicense

        public java.lang.String getLicense()
        Obtains the license text.
        Returns:
        License text.
      • getPackageName

        public java.lang.String getPackageName()
        Obtains the package name for this GraphNodeMetaData instance.
        Returns:
        Package name for this GraphNodeMetaData instance.
      • getModelMetaData

        public ModelMetaData getModelMetaData​(java.lang.String typeName)
                                       throws java.lang.Exception
        Obtains the ModelMetaData for the input type.
        Parameters:
        typeName - Name of the type.
        Returns:
        ModelMetaData for the type or null if not model generation type.
        Throws:
        java.lang.Exception - If fails to obtain the ModelMetaData.