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

org.pentaho.di.compatibility.ValueInterface Maven / Gradle / Ivy

There is a newer version: 8.3.0.0-0.2.5
Show newest version
/*! ******************************************************************************
 *
 * Pentaho Data Integration
 *
 * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
 *
 *******************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ******************************************************************************/

package org.pentaho.di.compatibility;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * This interface provides a way to look at a Number, String, Integer, Date... the same way. The methods mentioned in
 * this interface are common to all Value types.
 *
 * @author Matt
 * @since 15-10-2004
 */
public interface ValueInterface {
  public int getType();

  public String getTypeDesc();

  public String getString();

  public double getNumber();

  public Date getDate();

  public boolean getBoolean();

  public long getInteger();

  public BigDecimal getBigNumber();

  public Serializable getSerializable();

  public byte[] getBytes();

  public void setString( String string );

  public void setNumber( double number );

  public void setDate( Date date );

  public void setBoolean( boolean bool );

  public void setInteger( long number );

  public void setBigNumber( BigDecimal number );

  public void setSerializable( Serializable ser );

  public void setBytes( byte[] b );

  public int getLength();

  public int getPrecision();

  public void setLength( int length );

  public void setPrecision( int precision );

  public void setLength( int length, int precision );

  public Object clone();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy