Package org.structr.schema.parser

Examples of org.structr.schema.parser.PropertyParser


          defaultValue = rawType.substring(lastIndex+1);
          rawType = rawType.substring(0, lastIndex);

        }

        PropertyParser parser = SchemaHelper.getParserForRawValue(errorBuffer, entity.getClassName(), propertyName, dbName, rawType, notNull, defaultValue);
        if (parser != null) {

          // add property name to set for later use
          propertyNames.add(parser.getPropertyName());

          // append created source from parser
          src.append(parser.getPropertySource(entity, errorBuffer));

          // register global elements created by parser
          validators.addAll(parser.getGlobalValidators());
          enums.addAll(parser.getEnumDefinitions());

          // register property in default view
          //addPropertyToView(PropertyView.Public, propertyName.substring(1), views);
          addPropertyToView(PropertyView.Ui, propertyName.substring(1), views);
        }
View Full Code Here


      if (source.startsWith(entry.getKey().name())) {

        try {

          final PropertyParser parser = entry.getValue().getConstructor(ErrorBuffer.class, String.class, String.class, String.class, String.class, String.class).newInstance(errorBuffer, className, propertyName, dbName, source, defaultValue);
          parser.setNotNull(notNull);

          return parser;

        } catch (Throwable t) {
          t.printStackTrace();
View Full Code Here

TOP

Related Classes of org.structr.schema.parser.PropertyParser

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.