/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * Zend Technologies *******************************************************************************/ package org.eclipse.php.internal.debug.core.xdebug.dbgp.model; /** * DBGp null value. * * @author Bartlomiej Laczkowski */ public class DBGpNullValue extends AbstractDBGpValue { /** * Creates new DBGp null value. * * @param owner */ public DBGpNullValue(DBGpVariable owner) { super(owner); } /* * (non-Javadoc) * * @see * org.eclipse.php.internal.debug.core.xdebug.dbgp.model.AbstractDBGpValue# * createValueString(org.eclipse.php.internal.debug.core.xdebug.dbgp.model. * AbstractDBGpValue.DBGpValueData) */ @Override protected String createValueString(DBGpValueData valueData) { String valueString = valueData.getValueString(); if (valueString != null) return valueString.trim(); return DataType.PHP_NULL.getText(); } /* * (non-Javadoc) * * @see * org.eclipse.php.internal.debug.core.xdebug.dbgp.model.AbstractDBGpValue# * supportsValueModification() */ @Override protected boolean supportsValueModification() { return true; } /* * (non-Javadoc) * * @see * org.eclipse.php.internal.debug.core.xdebug.dbgp.model.AbstractDBGpValue# * verifyValue(java.lang.String) */ @Override protected boolean verifyValue(String expression) { return true; } }