Tabnine Logo
SClass.isList
Code IndexAdd Tabnine to your IDE (free)

How to use
isList
method
in
org.bimserver.shared.meta.SClass

Best Java code snippets using org.bimserver.shared.meta.SClass.isList (Showing top 3 results out of 315)

origin: opensourceBIM/BIMserver

private void genServiceInterfaceToProtocolBuffers(PrintWriter out, String sourceName, String targetName, SClass parameterType) {
  for (SField field : parameterType.getAllFields()) {
    SClass fieldType = field.getType();
    SClass fieldClass = fieldType;
    if (fieldClass.isList()) {
      out.println("\t\t\tfor (" + fieldType.getName() + " o : " + sourceName + "." + field.getName() + "()) {");
      out.println("\t\t\t\t" + targetName + ".add" + field.getName() + "(o);");
      out.println("\t\t\t}");
    } else if (fieldClass.isDate()) {
      out.println("\t\t\t" + targetName + ".set" + field.getName() + "(" + sourceName + "." + field.getName() + "().getTime());");
    } else if (fieldType.getInstanceClass() == byte[].class) {
      out.println("\t\t\t" + targetName + ".set" + field.getName() + "(ByteString.copyFrom(" + sourceName + "." + field.getName() + "()));");
    } else if (fieldClass.isEnum()) {
      out.println("\t\t\t" + targetName + ".set" + field.getName() + "(" + fieldType.getInstanceClass().getSimpleName() + ".values()[" + sourceName + "."
          + field.getName() + "().ordinal()]);");
    } else {
      out.println("\t\t\t" + targetName + ".set" + field.getName() + "(" + sourceName + "." + field.getName() + "());");
    }
  }
}
origin: opensourceBIM/BIMserver

  if (definedType.isList()) {
    List<Object> list = new ArrayList<Object>();
    for (int i = 0; i < array.size(); i++) {
    return ((ValueNode) object).asBoolean();
} else if (definedType.isList()) {
  if (genericType.isLong()) {
    if (object instanceof ValueNode) {
origin: opensourceBIM/BIMserver

} else if (value instanceof Collection) {
  Collection col = (Collection)value;
  if (sParameter.getType().isList()) {
    List list = new ArrayList(col);
    arguments[i] = new KeyValuePair(fieldDescriptor.getName(), list);
org.bimserver.shared.metaSClassisList

Popular methods of SClass

  • getAllFields
  • getInstanceClass
  • getName
  • getSimpleName
  • toJavaCode
  • <init>
  • getSimpleType
  • isDataHandler
  • isDate
  • isEnum
  • isSet
  • isString
  • isSet,
  • isString,
  • isVoid,
  • addField,
  • addSubClass,
  • addSuperClass,
  • equals,
  • getField,
  • getOwnFields

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • findViewById (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Best plugins for Eclipse
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