All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.connectifex.polymer.mdl.shared.generated.types.adapters.FolderAndNoteMVAdapter Maven / Gradle / Ivy

package com.connectifex.polymer.mdl.shared.generated.types.adapters;

import org.dmd.dmc.presentation.DmcAdapterIF;
import org.dmd.dmc.DmcAttribute;
import org.dmd.dmc.DmcAttributeInfo;
import org.dmd.dms.generated.types.DmcTypeModifierMV;
import com.connectifex.polymer.mdl.shared.generated.types.DmcTypeFolderAndNoteMV;

@SuppressWarnings("serial")
// org.dmd.dms.util.AdapterFormatter.dumpAdapter(AdapterFormatter.java:59)
// Called from: org.dmd.dms.util.AdapterFormatter.dumpAdapterMV(AdapterFormatter.java:16)
public class FolderAndNoteMVAdapter extends DmcTypeFolderAndNoteMV implements DmcAdapterIF {

    transient DmcTypeFolderAndNoteMV existingValue;

    public FolderAndNoteMVAdapter(DmcAttributeInfo ai){
    	   super(ai);
    }

    public void setEmpty(){
    	   value = null;
    }

    public boolean hasValue(){
    	   if (value == null)
    		   return(false);
    	   return(true);
    }

    public void resetToExisting() {
    	if (existingValue == null)
    		value = null;
    	else
    		value = existingValue.getMVCopy();
    }

    public void setExisting(DmcAttribute attr) {
    	existingValue = (DmcTypeFolderAndNoteMV) attr;
    	if (existingValue != null)
    		value = existingValue.getMVCopy();
    }

    public boolean valueChanged(){
    	   return(valueChangedMV(existingValue, this));
    }

    public void addMods(DmcTypeModifierMV mods){
    	   addModsMV(mods, existingValue, this);
    }

    public DmcAttribute getExisting() {
    	   return(existingValue);
    }

    public Object getValue() {
    	   return(value);
    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy