Package org.dmd.dms.generated.types

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


  @SuppressWarnings("unused")
  public boolean objectMatches(DmcObject obj) {
    boolean rc = false;
    Iterator<ClassDefinitionREF> refs= obj.getObjectClass();
    while(refs.hasNext()){
      ClassDefinitionREF ref = refs.next();
      if (ref.getObject() == null){
        DmcClassInfo info = DmcOmni.instance().getClassInfo(ref.getObjectName().getNameString());
        if (ci.isInstanceOf(ref.getObjectName().getNameString())){
          rc = true;
          break;
        }
      }
      else{
        if (ci.isInstanceOf(ref.getObject().getDmdID())){
          rc = true;
          break;
        }
      }
    }
View Full Code Here


    /**
     * @return A ClassDefinition object.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1252)
    public ClassDefinition getSourceObjectClass(){
        ClassDefinitionREF ref = ((DMPEventDMO) core).getSourceObjectClass();
        if (ref == null)
            return(null);
       
        if (ref.getObject() == null)
            return(null);
       
        return((ClassDefinition)ref.getObject().getContainer());
    }
View Full Code Here

    /**
     * @return A ClassDefinition object.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1252)
    public ClassDefinition getTargetObjectClass(){
        ClassDefinitionREF ref = ((SetRequestDMO) core).getTargetObjectClass();
        if (ref == null)
            return(null);
       
        if (ref.getObject() == null)
            return(null);
       
        return((ClassDefinition)ref.getObject().getContainer());
    }
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);
        rc.addAux(new ClassDefinitionREF(cd.getDMO()));
      }
    }
   
    return(rc);
  }
View Full Code Here

    /**
     * @return A ClassDefinition object.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1252)
    public ClassDefinition getFilterByClass(){
        ClassDefinitionREF ref = ((GetRequestDMO) core).getFilterByClass();
        if (ref == null)
            return(null);
       
        if (ref.getObject() == null)
            return(null);
       
        return((ClassDefinition)ref.getObject().getContainer());
    }
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

   
    // Dump the construction class and any auxiliary classes
    if (classes != null){
      Iterator<ClassDefinitionREF> cls = classes.getMV();
      while(cls.hasNext()){
        ClassDefinitionREF cdr = cls.next();
        sb.append(cdr.getObjectName());
        if (cls.hasNext())
          sb.append(" ");
      }
      sb.append("\n");
    }
View Full Code Here

  public DataTypeEnum getDataType(){
    DataTypeEnum rc = DataTypeEnum.UNKNOWN;
   
    DmcTypeClassDefinitionREFMV objClass = (DmcTypeClassDefinitionREFMV) attributes.get(__objectClass.id);
    if (objClass != null){
      ClassDefinitionREF ref = objClass.getMVnth(0);
      if (ref.getObject() != null){
        ClassDefinitionDMO dmo = ref.getObject();
        rc = dmo.getDataType();
      }
    }
     
    return(rc);
View Full Code Here

    /**
     * @return A ClassDefinition object.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1252)
    public ClassDefinition getEditObject(){
        ClassDefinitionREF ref = ((FormBindingDefinitionDMO) core).getEditObject();
        if (ref == null)
            return(null);
       
        if (ref.getObject() == null)
            return(null);
       
        return((ClassDefinition)ref.getObject().getContainer());
    }
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);
        rc.addAux(new ClassDefinitionREF(cd.getDMO()));
      }
    }
   
    return(rc);
  }
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.