alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * Property.java
 *
 * Created on May 20, 2004, 1:48 PM
 */

package org.netbeans.tests.examples.packa;

import java.util.Date;
import org.netbeans.tests.examples.packc.AbstractBean;

/**
 *
 * @author  eh103527
 */
public class Property extends AbstractBean {
    
    static String[] types={"String","int","boolean","char","long","short","float","double"};
    
    String name;
    
    String value;
    
    /** Creates a new instance of Property */
    public Property(String name, String value) {
        this.name=name;
        this.value=value;
    }
    
    /**
     * Getter for property name.
     * @return Value of property name.
     */
    public java.lang.String getName() {
        return name;
    }
    
    /**
     * Getter for property value.
     * @return Value of property value.
     */
    public java.lang.String getValue() {
        return value;
    }
    
    /**
     * Setter for property value.
     * @param value New value of property value.
     */
    public void setValue(java.lang.String value) {
        this.value = value;
        new Thread() {
            public void run() {
                Bean bean=new Bean();
            }
        }.start();
    }
    
    public void methodBean() {
        rootField=name+" "+value+" "+(new Date().toString());
        System.out.println(rootField);        
    }
    
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.