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

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

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

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

_colDefault.add("simple1");
_colDefault.add("simple2");
SchemaPropertyList col = SchemaPropertyList.create(_name, _fieldName, _classType,
    _desc, true, new ArrayList<String>(), _colDefault, _colDefault.getClass()
        .getName(), false);
origin: org.deephacks.tools4j/tools4j-config-core

List<String> defaultValues = new ArrayList<>(converted);
return SchemaPropertyList.create(name, fieldName, type.getName(), desc, source
    .isFinal(), source.getEnums(), defaultValues, source.getCollRawType()
    .getName(), indexed);
origin: org.deephacks.tools4j/config-core

private AbstractSchemaProperty convertSimple(FieldWrap<Config> source) {
  String name = source.getAnnotation().name();
  String desc = source.getAnnotation().desc();
  String fieldName = source.getFieldName();
  if (name == null || "".equals(name)) {
    name = fieldName;
  }
  Class<?> type = source.getType();
  validateField(source);
  try {
    if (source.isCollection()) {
      Collection<String> converted = conversion.convert(source.getDefaultValues(),
          String.class);
      List<String> defaultValues = new ArrayList<String>(converted);
      return SchemaPropertyList.create(name, fieldName, type.getName(), desc, source
          .isFinal(), source.isEnum(), defaultValues, source.getCollRawType()
          .getName());
    } else {
      return SchemaProperty.create(name, fieldName, type.getName(), desc,
          source.isFinal(), source.isEnum(),
          conversion.convert(source.getDefaultValue(), String.class));
    }
  } catch (ConversionException e) {
    throw CFG104_UNSUPPORTED_PROPERTY(String.class, name, type);
  }
}
origin: org.deephacks.tools4j/config-core

public Map<String, Schema> getSchemas() {
  Map<String, Schema> result = new HashMap<String, Schema>();
  for (XmlSchema b : schemas) {
    Schema schema = Schema.create(
        SchemaId.create(b.id.name, b.id.desc, b.id.singleton), b.type, b.name,
        b.desc);
    for (XmlSchemaProperty p : b.properties) {
      schema.add(SchemaProperty.create(p.name, p.fieldName, p.type, p.desc,
          p.isImmutable, p.isEnum, p.defaultValue));
    }
    for (XmlSchemaCollection p : b.collection) {
      schema.add(SchemaPropertyList.create(p.name, p.fieldName, p.parameterizedType,
          p.desc, p.isImmutable, p.isEnum, p.defaultValues, p.collectionType));
    }
    for (XmlSchemaRef p : b.ref) {
      schema.add(SchemaPropertyRef.create(p.name, p.fieldName, p.schemaName, p.desc,
          p.isImmutable, p.isSingleton));
    }
    for (XmlSchemaRefCollection p : b.refCollection) {
      schema.add(SchemaPropertyRefList.create(p.name, p.fieldName, p.schemaName,
          p.desc, p.isImmutable, p.collectionType));
    }
    for (XmlSchemaRefMap p : b.refMap) {
      schema.add(SchemaPropertyRefMap.create(p.name, p.fieldName, p.schemaName,
          p.desc, p.isImmutable, p.mapType));
    }
    result.put(schema.getName(), schema);
  }
  return result;
}
org.deephacks.tools4j.config.modelSchema$SchemaPropertyListcreate

Javadoc

Not to be used by users.

Popular methods of Schema$SchemaPropertyList

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

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • JOptionPane (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim 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