Package org.dmd.dms.generated.types

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


    /**
     * Removes the specified auxiliary class name from the object.
     * @param cd The auxiliary class name.
     */
    public void removeAux(String cd){
      DmcTypeClassDefinitionREFMV ocl = (DmcTypeClassDefinitionREFMV) get(__objectClass.id);

    if (ocl != null)
      ocl.del(cd);
    }
View Full Code Here


    /**
     * Determines if the specified class is in our ocl.
     * @param cd The auxiliary class name.
     */
    public boolean hasAux(String cd){
      DmcTypeClassDefinitionREFMV ocl = (DmcTypeClassDefinitionREFMV) get(__objectClass.id);

    if (ocl == null)
      return(false);
   
    return(ocl.contains(cd));
    }
View Full Code Here

   */
  private void appendClassNames(StringBuffer sb){
    if (getModifier() != null)
      return;
   
    DmcTypeClassDefinitionREFMV classes = (DmcTypeClassDefinitionREFMV) this.get(__objectClass.id);
   
    // 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(" ");
View Full Code Here

   * where the underlying class definition is available; otherwise, UNKNOWN is returned.
   */
  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();
      }
    }
View Full Code Here

     * @throws DmcValueException 
     */
    public void serializeIt(DmcOutputStreamIF dos) throws Exception, DmcValueException {
    synchronized (attributes) {
      // WRITE: the objectClass
      DmcTypeClassDefinitionREFMV oc = (DmcTypeClassDefinitionREFMV) get(__objectClass.id);
      // WRITE: the object class is serialized as [class count] id id id...
      dos.writeInt(oc.getMVSize());
      for(int i=0; i<oc.getMVSize(); i++){
        dos.writeInt(oc.getMVnth(i).getClassInfo().id);
      }
 
      // We have to determine the number of attributes we're going to write. That will
      // depend on the dataType of the attributes and the mode that the output stream
      // is in.
View Full Code Here

          throw(ex);
        }
       
   
    // Add the object class
    DmcTypeClassDefinitionREFMV cref = new DmcTypeClassDefinitionREFMV();
    cref.add(cd.getObjectName());
   
    // And add any auxiliary classes if we have them
    for(int i=1; i<uco.classes.size(); i++){
      if ((cd = schema.isClass((String)uco.classes.get(i))) == null){
            ResultException ex = new ResultException();
              ex.result.addResult(Result.ERROR,"Unknown class: " + uco.classes.get(i));
              throw(ex);
      }
      cref.add(cd.getObjectName());
//      dmo.add("objectClass", cref);
    }
   
    dmo.add(DmcObject.__objectClass, cref);
   
View Full Code Here

        return(null);
      return(getDmcObject().getConstructionClassName());
    }
   
  public ClassDefinitionIterableDMW getObjectClass(){
      DmcTypeClassDefinitionREFMV attr = (DmcTypeClassDefinitionREFMV) core.get(DmcObject.__objectClass);
        if (attr == null)
            return(ClassDefinitionIterableDMW.emptyList);

        return(new ClassDefinitionIterableDMW(attr.getMV()));
    }
View Full Code Here

        return(null);
      return(getDmcObject().getConstructionClassName());
    }
   
  public ClassDefinitionIterableDMW getObjectClass(){
      DmcTypeClassDefinitionREFMV attr = (DmcTypeClassDefinitionREFMV) core.get(DmcObject.__objectClass);
        if (attr == null)
            return(ClassDefinitionIterableDMW.emptyList);

        return(new ClassDefinitionIterableDMW(attr.getMV()));
    }
View Full Code Here

TOP

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

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.