Java Code Examples for com.vmware.vim25.PropertyChangeOp#REMOVE

The following examples show how to use com.vmware.vim25.PropertyChangeOp#REMOVE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WaitForValues.java    From vsphere-automation-sdk-java with MIT License 5 votes vote down vote up
private void updateValues(String[] props, Object[] vals,
        PropertyChange propchg) {
    for (int findi = 0; findi < props.length; findi++) {
        if (propchg.getName().lastIndexOf(props[findi]) >= 0) {
            if (propchg.getOp() == PropertyChangeOp.REMOVE) {
                vals[findi] = "";
            } else {
                vals[findi] = propchg.getVal();
            }
        }
    }
}
 
Example 2
Source File: WaitForValues.java    From cs-actions with Apache License 2.0 5 votes vote down vote up
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) {
    for (int findi = 0; findi < props.length; findi++) {
        if (propchg.getName().lastIndexOf(props[findi]) >= 0) {
            vals[findi] = propchg.getOp() == PropertyChangeOp.REMOVE ? Constants.EMPTY : propchg.getVal();
        }
    }
}
 
Example 3
Source File: VmwareClient.java    From cloudstack with Apache License 2.0 5 votes vote down vote up
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) {
    for (int findi = 0; findi < props.length; findi++) {
        if (propchg.getName().lastIndexOf(props[findi]) >= 0) {
            if (propchg.getOp() == PropertyChangeOp.REMOVE) {
                vals[findi] = "";
            } else {
                vals[findi] = propchg.getVal();
            }
        }
    }
}
 
Example 4
Source File: VMwareUtil.java    From cloudstack with Apache License 2.0 5 votes vote down vote up
private static void updateValues(String[] props, Object[] vals, PropertyChange propertyChange) {
    for (int findi = 0; findi < props.length; findi++) {
        if (propertyChange.getName().lastIndexOf(props[findi]) >= 0) {
            if (propertyChange.getOp() == PropertyChangeOp.REMOVE) {
                vals[findi] = "";
            } else {
                vals[findi] = propertyChange.getVal();
            }
        }
    }
}