Tabnine Logo
Schema$SchemaPropertyList.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.deephacks.tools4j.config.model.Schema$SchemaPropertyList

Best Java code snippets using org.deephacks.tools4j.config.model.Schema$SchemaPropertyList.getName (Showing top 5 results out of 315)

origin: org.deephacks.tools4j/tools4j-config-core

private void convertPropertyList(Bean source, Map<String, Object> values) {
  for (SchemaPropertyList prop : source.getSchema().get(SchemaPropertyList.class)) {
    List<String> vals = source.getValues(prop.getName());
    String field = prop.getFieldName();
    if (vals == null) {
      continue;
    }
    Collection<Object> c = newCollection(loadClass(prop.getCollectionType()));
    for (String val : vals) {
      Object converted = conversion.convert(val, loadClass(prop.getType()));
      c.add(converted);
    }
    values.put(field, c);
  }
}
origin: org.deephacks.tools4j/config-core

private void convertPropertyList(Bean source, Map<String, Object> values) {
  for (SchemaPropertyList prop : source.getSchema().get(SchemaPropertyList.class)) {
    List<String> vals = source.getValues(prop.getName());
    String field = prop.getFieldName();
    if (vals == null) {
      continue;
    }
    Collection<Object> c = newCollection(forName(prop.getCollectionType()));
    for (String val : vals) {
      Object converted = conversion.convert(val, forName(prop.getType()));
      c.add(converted);
    }
    values.put(field, c);
  }
}
origin: org.deephacks.tools4j/config-core

private static void validatePropertyList(Bean bean) {
  Schema schema = bean.getSchema();
  ClassRepository repos = new ClassRepository();
  for (SchemaPropertyList prop : schema.get(SchemaPropertyList.class)) {
    List<String> values = bean.getValues(prop.getName());
    if (values == null) {
      continue;
    }
    for (String value : values) {
      try {
        conversion.convert(value, repos.loadClass(prop.getType()));
      } catch (Exception e) {
        throw Events.CFG105_WRONG_PROPERTY_TYPE(bean.getId(), prop.getName(),
            prop.getType(), value);
      }
    }
  }
}
origin: org.deephacks.tools4j/tools4j-config-core

private static void validatePropertyList(Bean bean) {
  Schema schema = bean.getSchema();
  for (SchemaPropertyList prop : schema.get(SchemaPropertyList.class)) {
    List<String> values = bean.getValues(prop.getName());
    if (values == null) {
      continue;
    }
    for (String value : values) {
      try {
        conversion.convert(value, forName(prop.getType()));
      } catch (Exception e) {
        throw Events.CFG105_WRONG_PROPERTY_TYPE(bean.getId(), prop.getName(),
            prop.getType(), value);
      }
    }
  }
}
origin: org.deephacks.tools4j/config-core

  public XmlSchemaCollection(SchemaPropertyList p) {
    this.name = p.getName();
    this.fieldName = p.getFieldName();
    this.parameterizedType = p.getType();
    this.collectionType = p.getCollectionType();
    this.desc = p.getDesc();
    this.isImmutable = p.isImmutable();
    this.isImmutable = p.isEnum();
    this.defaultValues = p.getDefaultValues();
  }
}
org.deephacks.tools4j.config.modelSchema$SchemaPropertyListgetName

Popular methods of Schema$SchemaPropertyList

  • create
  • getCollectionType
  • getType
  • getDefaultValues
  • getFieldName
  • <init>
  • equals
  • getClassCollectionType
  • getClassType
  • getDesc
  • isEnum
  • isImmutable
  • isEnum,
  • isImmutable

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now