Package org.dmd.dms.generated.types

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


   * @param slice the slice of attributes.
   * @param source the source modifier.
   * @return The modifier with the sliced attributes or null if none of the attributes matched.
   */
  DmcTypeModifierMV getModifierSlice(DmcSliceInfo slice, DmcTypeModifierMV source){
    DmcTypeModifierMV rc = new DmcTypeModifierMV();
   
    Iterator<Modifier> mods = source.getMV();
    while(mods.hasNext()){
      Modifier mod = mods.next();
      if (slice.contains(mod.getAttributeID())){
        try {
          rc.add(mod);
        } catch (DmcValueException e) {
          throw(new IllegalStateException("Should not throw an exception adding a Modifier to a DmcTypeModifier"));
        }
      }
    }
   
    if (rc.getMVSize() == 0)
      rc = null;
   
    return(rc);
  }
View Full Code Here


   * @param ai
   * @return
   */
  public boolean thisAttributeModified(DmcAttributeInfo ai){
    if (getEventTypeDMP() == DMPEventTypeEnum.MODIFIED){
      DmcTypeModifierMV mods = getModifyAttribute();
      if (mods != null){
        for(int i=0; i<mods.getMVSize(); i++){
          Modifier mod = mods.getMVnth(i);
          DmcAttributeInfo modai = mod.getAttributeInfo();
          if (modai == null)
            throw(new IllegalStateException("Couldn't get attriute info for: " + mod.getAttributeName()));
          if (modai.id == ai.id)
            return(true);
View Full Code Here

    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:470)
    public GetRequest getModificationRecorder(){
        GetRequest rc = new GetRequest();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here

        setModifier(mods);
    }

    public ResponseDMO getModificationRecorder(){
        ResponseDMO rc = new ResponseDMO();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        rc.modrec(true);
        return(rc);
    }
View Full Code Here

        setModifier(mods);
    }

    public ActionResponseDMO getModificationRecorder(){
        ActionResponseDMO rc = new ActionResponseDMO();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        rc.modrec(true);
        return(rc);
    }
View Full Code Here

        setModifier(mods);
    }

    public PreAuthResponseDMO getModificationRecorder(){
        PreAuthResponseDMO rc = new PreAuthResponseDMO();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        rc.modrec(true);
        return(rc);
    }
View Full Code Here

    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:470)
    public Response getModificationRecorder(){
        Response rc = new Response();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:491)
    public ActifactGenerator getModificationRecorder(){
        ActifactGenerator rc = new ActifactGenerator();
        rc.setName(getName());
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here

        setModifier(mods);
    }

    public DMPEventDMO getModificationRecorder(){
        DMPEventDMO rc = new DMPEventDMO();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        rc.modrec(true);
        return(rc);
    }
View Full Code Here

     * @return An Iterator of Modifier objects.
     */
    @SuppressWarnings("unchecked")
    // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:1102)
    public Iterator<Modifier> getModify(){
        DmcTypeModifierMV attr = (DmcTypeModifierMV) get(MetaDMSAG.__modify);
        if (attr == null)
            return( ((List<Modifier>) Collections.EMPTY_LIST).iterator());

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

TOP

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

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.