Java 类com.vmware.vim25.PropertyChangeOp 实例源码

项目:vijava    文件:ManagedObject.java   
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) 
{
    for (int i = 0; i < props.length; i++) 
    {
        if (propchg.getName().lastIndexOf(props[i]) >= 0) 
        {
            if (propchg.getOp() == PropertyChangeOp.remove) 
            {
                vals[i] = "";
            } 
            else 
            {
                vals[i] = propchg.getVal();
            }
        }
    }
}
项目:photon-model    文件:WaitForValues.java   
private void updateValues(String[] props, Object[] vals, PropertyChange propchg) {
    for (int i = 0; i < props.length; i++) {
        if (propchg.getName().equals(props[i])) {
            if (propchg.getOp() == PropertyChangeOp.REMOVE) {
                vals[i] = null;
            } else {
                vals[i] = propchg.getVal();
            }
        }
    }
}
项目:vsphere-automation-sdk-java    文件:WaitForValues.java   
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();
            }
        }
    }
}
项目:cs-actions    文件:WaitForValues.java   
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();
        }
    }
}
项目:cloudstack    文件:VmwareClient.java   
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();
            }
        }
    }
}
项目:cloudstack    文件:VMwareUtil.java   
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();
            }
        }
    }
}