Package org.dmd.dmc

Examples of org.dmd.dmc.DmcObjectName


  }

  @Override
  public DmcObjectName getNameValueInstance() throws Exception {
    int id = dis.readShort();
    DmcObjectName rc = schema.getNameValueInstance(id);
   
    if (calledFrom)
      System.out.print(format.sprintf(DebugInfo.getShortWhereWeWereCalledFrom()) + " ");
    System.out.println(" attrid: " + id + "  name value:  " + rc.getClass().getName());

    return(rc);
  }
View Full Code Here


  public DMPEvent(DMPEventTypeEnum et, DmwWrapper w){
    super();
    setEventTypeDMP(et);
    setSourceObjectClass(w.getConstructionClass());
    if (w instanceof DmcNamedObjectIF){
      DmcObjectName on = ((DmcNamedObjectIF)w).getObjectName();
      if (on != null)
        setSource(on);
    }
   
    if (et == DMPEventTypeEnum.CREATED){
      setSourceObject(w.getDmcObject());
    }
    else if (et == DMPEventTypeEnum.LOADED){
      setSourceObject(w.getDmcObject());
    }
    else if (et == DMPEventTypeEnum.DELETED){
      if (w instanceof DmcNamedObjectIF){
        DmcObjectName on = ((DmcNamedObjectIF)w).getObjectName();
        if (on != null)
          setSource(on);
      }
    }
    else if (et == DMPEventTypeEnum.MODIFIED){
View Full Code Here

   * @throws ClassNotFoundException
   * @throws InstantiationException
   * @throws IllegalAccessException
   */
  public DmcObjectName getNameValue() throws ClassNotFoundException, InstantiationException, IllegalAccessException{
    DmcObjectName rc = null;
       
    if (getNameAttributeDef() == null){
      throw(new IllegalStateException("The " + getName() + " type does not have a designated name attribute definition!"));
    }
   
View Full Code Here

      AttributeDefinition ad = attrByID.get(id);
     
      if (ad == null)
        return(null);
     
      DmcObjectName rc = null;
     
      rc = ad.getType().getNameValue();
     
      return(rc);
    }
View Full Code Here

      if ( (name != null) && (other.name != null))
        return(name.getSV().equals(other.name.getSV()));
    }
    else if (obj instanceof DmcObjectName){
      if (name != null){
        DmcObjectName other = (DmcObjectName) obj;
        return(name.getSV().equals(other));
      }
    }
     
    return false;
View Full Code Here

      case ALL:
        break;
      case BASE:
      case NONE:
        if (request.getTargetsSize() == 1){
          DmcObjectName name          = request.getDMO().getNthTargets(0).getName();
          DmwNamedObjectWrapper wrapper   = cache.get(name);
         
          if (wrapper == null){
            response = (GetResponse) request.getErrorResponse();
            response.setResponseText("Couldn't retrieve object: " + name.getNameString());
          }
          else{
            response = request.getResponse();
            response.addObjectList(wrapper.getDmcObject());
            response.setLastResponse(true);
View Full Code Here

TOP

Related Classes of org.dmd.dmc.DmcObjectName

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.