Package easysm.datatypes.information

Examples of easysm.datatypes.information.TypeInfo


   * Does not handle optional types (ClassType [0..1]).
   * Values are not synchronized. Needs a manual call to refreshFromClass.
   */
  public static Type classAsType(Class cl)
  {
    TypeInfo typeInfo = new TypeInfo(cl.name());
    return new Type(typeInfo, false, null);
  }
View Full Code Here


  /**
   * Values are not synchronized. Needs a manual call to refreshFromEnum.
   */
  public static Type enumAsType(Enumeration en)
  {
    TypeInfo typeInfo = new TypeInfo(en.name());
    Set<Value> values = SetFactory.createSet(Value.class);
    for (Literal lit : en.literals()) {
      values.add(new Value(lit.toString()));
    }
    return new Type(typeInfo, true, values);
View Full Code Here

TOP

Related Classes of easysm.datatypes.information.TypeInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.