Package org.dmd.dms.generated.types

Examples of org.dmd.dms.generated.types.ClassDefinitionREF


    // Add the auxiliary classes if they exist
    if (classCount > 1){
      for(int i=1; i<classCount; i++){
        classID = dis.readInt();
        cd = schema.isClass(classID);
        dmo.addAux(new ClassDefinitionREF(cd.getDMO()));
      }
    }
   
    // READ: the number of attributes
    int     attrCount = dis.readAttributeCount();
View Full Code Here


    // Add the auxiliary classes if they exist
    if (classCount > 1){
      for(int i=1; i<classCount; i++){
        classID = dis.readInt();
        cd = schema.isClass(classID);
        dmo.addAux(new ClassDefinitionREF(cd.getDMO()));
      }
    }
   
    // READ: the number of attributes
    int     attrCount = dis.readAttributeCount();
View Full Code Here

 
  /**
   * @return The construction class definition for this object.
   */
  public ClassDefinition getConstructionClass(){
    ClassDefinitionREF cdr = core.getConstructionClass();
    if (cdr == null)
      return(null);
    if (cdr.getObject() == null)
      return(null);
    return (ClassDefinition) (cdr.getObject().getContainer());
  }
View Full Code Here

    // Now that the objectClass is stored in the DmcObject as a DmcTypeClassDefinitionREF, we
    // just "resolve" the reference to point to this ClassDefinition
    DmcObject dmo = obj;
    Iterator<ClassDefinitionREF> ocl = dmo.getObjectClass();
    if (ocl != null){
      ClassDefinitionREF cdr = ocl.next();
      if (cdr != null){
        cdr.setObject((ClassDefinitionDMO) cd.getDmcObject());
      }
    }
    }
View Full Code Here

   * Adds the specified auxiliary class to the object.
   * @param cd The auxiliary class definition.
   * @throws DmcValueException
   */
  public void addAux(ClassDefinition cd) throws DmcValueException {
    ClassDefinitionREF cdr = new ClassDefinitionREF(cd.getDMO());
    core.addAux(cdr);
  }
View Full Code Here

 
  /**
   * @return The construction class definition for this object.
   */
  public ClassDefinition getConstructionClass(){
    ClassDefinitionREF cdr = core.getConstructionClass();
    if (cdr == null)
      return(null);
    if (cdr.getObject() == null)
      return(null);
    return (ClassDefinition) (cdr.getObject().getContainer());
  }
View Full Code Here

TOP

Related Classes of org.dmd.dms.generated.types.ClassDefinitionREF

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.