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

com.eva.properties.Null Maven / Gradle / Ivy

Go to download

Advanced properties with object factories, references and inheritance.

There is a newer version: 0.3
Show newest version
/*
 * $Id: Null.java 23 2007-02-16 07:44:41Z max $
 *
 * Copyright (c) 2007 Maximilian Antoni. All rights reserved.
 * 
 * This software is licensed as described in the file LICENSE.txt, which you
 * should have received as part of this distribution. The terms are also
 * available at http://www.maxantoni.de/projects/eva-properties/license.txt.
 */
package com.eva.properties;

/**
 * null object for values.
 * 
 * @author max
 * @version $Revision: 23 $
 */
public class Null implements Replaceable {
    public static final Null INSTANCE = new Null();
    
    private Null() {
        super();
    }
    
    /*
     * @see com.eva.properties.Replaceable#copy(com.eva.properties.Properties)
     */
    public Replaceable copy(Properties inParent) {
        return INSTANCE;
    }

    /*
     * @see com.eva.properties.Replaceable#replace(com.eva.properties.Context)
     */
    public Object replace(Context inContext) throws PropertiesException {
        return null;
    }

    /*
     * @see com.eva.properties.Replaceable#write(com.eva.properties.Writer)
     */
    public void write(Writer inoutWriter) {
        inoutWriter.append("null");
        inoutWriter.appendNewline();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy