Package jade.content.schema

Examples of jade.content.schema.ObjectSchema.newInstance()


    if(logger.isLoggable(Logger.FINE))
      logger.log(Logger.FINE,"Parse complex descriptor: "+name);
    ++indent;
    try {
      ObjectSchema s = o.getSchema(name);
      abs = s.newInstance();
      if (abs instanceof AbsAggregate) {
        fillAggregate((AbsAggregate) abs, p, o);
      }
      else if (p.nextToken().startsWith(":")) {
        fillSlotsByName((AbsConcept) abs, p, o);
View Full Code Here


      AbsObject abs = null;
      try {
        abs = externalizeSpecialType(obj, schema, javaClass, globalOnto);
      } catch(NotASpecialType nasp) {
        // Manage as structure slot
        abs = schema.newInstance();
        externalize(obj, abs, schema, globalOnto);
      }
      return abs;
    }
View Full Code Here

    // If we get here it must be a complex OBJECT
    String typeName = readString(stream, type);
    // DEBUG System.out.println("Type is "+typeName);
    ObjectSchema schema = ontology.getSchema(typeName);
    // DEBUG System.out.println("Schema is "+schema);
    AbsObject    abs = schema.newInstance();

    byte marker = stream.readByte();

    do {
      if ((marker&UNMODIFIER) == ELEMENT) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.