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

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

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

origin: opensourceBIM/BIMserver

public ObjectNode toJson(ObjectMapper OBJECT_MAPPER) {
  ObjectNode result = OBJECT_MAPPER.createObjectNode();
  result.put("name", getName());
  result.put("simpleName", getSimpleName());
  result.put("simpleType", getSimpleType().name());
  ArrayNode fieldsJson = OBJECT_MAPPER.createArrayNode();
  for (SField field : ownFields.values()) {
    fieldsJson.add(field.toJson(OBJECT_MAPPER));
  }
  result.set("fields", fieldsJson);
  return result;
}
origin: opensourceBIM/BIMserver

public SServiceType createSServiceType(SClass sClass, boolean recurse) throws UserException, ServerException {
  if (sClass == null) {
    return null;
  }
  SServiceType sServiceType = new SServiceType();
  sServiceType.setName(sClass.getName());
  sServiceType.setSimpleName(sClass.getSimpleName());
  sServiceType.setSimpleType(SServiceSimpleType.valueOf(sClass.getSimpleType().name()));
  for (SField field : sClass.getOwnFields()) {
    SServiceField sServiceField = new SServiceField();
    sServiceField.setName(field.getName());
    if (recurse) {
      sServiceField.setType(createSServiceType(field.getType(), recurse));
      sServiceField.setGenericType(createSServiceType(field.getGenericType(), recurse));
    }
    sServiceField.setDoc(field.getDoc());
    sServiceType.getFields().add(sServiceField);
  }
  return sServiceType;
}
org.bimserver.shared.metaSClassgetSimpleType

Popular methods of SClass

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

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JComboBox (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
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