Codota Logo
Schema$SchemaPropertyRef.getSchemaName
Code IndexAdd Codota to your IDE (free)

How to use
getSchemaName
method
in
org.deephacks.tools4j.config.model.Schema$SchemaPropertyRef

Best Java code snippets using org.deephacks.tools4j.config.model.Schema$SchemaPropertyRef.getSchemaName (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.deephacks.tools4j/tools4j-config-api-model

@Override
public int hashCode() {
  return super.getHashCode() + Objects.hashCode(getSchemaName());
}
origin: org.deephacks.tools4j/tools4j-config-core

private void setSingletonReferences(Bean bean, Map<String, Schema> schemas) {
  Schema s = bean.getSchema();
  for (SchemaPropertyRef ref : s.get(SchemaPropertyRef.class)) {
    if (ref.isSingleton()) {
      Schema singletonSchema = schemas.get(ref.getSchemaName());
      Optional<Bean> singleton = beanManager.getSingleton(ref.getSchemaName());
      if (singleton.isPresent()) {
        singleton.get().set(singletonSchema);
        BeanId singletonId = singleton.get().getId();
        singletonId.setBean(singleton.get());
        // recursive call.
        setSingletonReferences(singleton.get(), schemas);
        bean.setReference(ref.getName(), singletonId);
      }
    }
  }
}
origin: org.deephacks.tools4j/tools4j-config-api-model

public String getReferenceSchemaName(String propertyName) {
  for (AbstractSchemaProperty schema : properties.values()) {
    if (!schema.getFieldName().equals(propertyName)) {
      continue;
    }
    if (schema instanceof SchemaPropertyRef) {
      return ((SchemaPropertyRef) schema).getSchemaName();
    }
    if (schema instanceof SchemaPropertyRefList) {
      return ((SchemaPropertyRefList) schema).getSchemaName();
    }
    if (schema instanceof SchemaPropertyRefMap) {
      return ((SchemaPropertyRefMap) schema).getSchemaName();
    }
  }
  return null;
}
origin: org.deephacks.tools4j/config-core

  public XmlSchemaRef(SchemaPropertyRef p) {
    this.name = p.getName();
    this.fieldName = p.getFieldName();
    this.schemaName = p.getSchemaName();
    this.desc = p.getDesc();
    this.isImmutable = p.isImmutable();
    this.isSingleton = p.isSingleton();
  }
}
origin: org.deephacks.tools4j/tools4j-config-api-model

@Override
public boolean equals(Object obj) {
  if (!(obj instanceof SchemaPropertyRef)) {
    return false;
  }
  SchemaPropertyRef o = (SchemaPropertyRef) obj;
  return equals(o) && equal(getSchemaName(), o.getSchemaName());
}
origin: org.deephacks.tools4j/config-core

private void setSingletonReferences(Bean bean, Map<String, Schema> schemas) {
  Schema s = bean.getSchema();
  for (SchemaPropertyRef ref : s.get(SchemaPropertyRef.class)) {
    if (ref.isSingleton()) {
      Schema singletonSchema = schemas.get(ref.getSchemaName());
      Bean singleton = beanManager.getSingleton(ref.getSchemaName());
      singleton.set(singletonSchema);
      BeanId singletonId = singleton.getId();
      singletonId.setBean(singleton);
      // recursive call.
      setSingletonReferences(singleton, schemas);
      bean.setReference(ref.getName(), singletonId);
    }
  }
}
origin: org.deephacks.tools4j/config-core

private void setSingletonReferences(Bean bean, Map<String, Schema> schemas) {
  Schema s = bean.getSchema();
  for (SchemaPropertyRef ref : s.get(SchemaPropertyRef.class)) {
    if (ref.isSingleton()) {
      Schema singletonSchema = schemas.get(ref.getSchemaName());
      Bean singleton = beanManager.getSingleton(ref.getSchemaName());
      singleton.set(singletonSchema);
      BeanId singletonId = singleton.getId();
      singletonId.setBean(singleton);
      // recursive call.
      setSingletonReferences(singleton, schemas);
      bean.setReference(ref.getName(), singletonId);
    }
  }
}
origin: org.deephacks.tools4j/tools4j-config-core

private void setSingletonReferences(Bean bean, Map<String, Schema> schemas) {
  Schema s = bean.getSchema();
  for (SchemaPropertyRef ref : s.get(SchemaPropertyRef.class)) {
    if (ref.isSingleton()) {
      Schema singletonSchema = schemas.get(ref.getSchemaName());
      Optional<Bean> singleton = beanManager.getSingleton(ref.getSchemaName());
      if (!singleton.isPresent()) {
        initFile(null);
        Bean fileBean = FILE_CONFIG.get(BeanId.createSingleton(ref.getSchemaName()));
        if (fileBean != null) {
          singleton = Optional.of(fileBean);
        }
      }
      if (!singleton.isPresent()) {
        singleton = Optional.of(Bean.create(BeanId.createSingleton(ref.getSchemaName())));
      }
      singleton.get().set(singletonSchema);
      BeanId singletonId = singleton.get().getId();
      singletonId.setBean(singleton.get());
      // recursive call.
      setSingletonReferences(singleton.get(), schemas);
      bean.setReference(ref.getName(), singletonId);
    }
  }
}
org.deephacks.tools4j.config.modelSchema$SchemaPropertyRefgetSchemaName

Popular methods of Schema$SchemaPropertyRef

  • create
  • getFieldName
  • getName
  • isSingleton
  • <init>
  • equals
  • getDesc
  • isImmutable

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now