Click here to Skip to main content
13,087,566 members (96,242 online)
Click here to Skip to main content
Articles » Languages » Java » General » Downloads


9 bookmarked
Posted 12 Dec 2008

Building Tree Structure Domain Model

, 12 Dec 2008
How to build domain model with tree structure, thinking Object-Oriented
package org.schedulemanager.demo.model;

import java.util.ArrayList;
import java.util.List;

public abstract class Job {
	protected String id;
	protected String name;
	protected String circle;
	protected String type;

	public final static String BATCHJOB = "BATCHJOB";
	public final static String JOBGROUP = "JOBGROUP";
	public final static String DAILY = "DAILY";
	public final static String WEEKLY = "WEEKLY";
	public final static String MONTHLY = "MONTHLY";
	public Job(String id) { = id ;
	public String getId() {
		return id;

	public void setId(String id) { = id;

	public String getName() {
		return name;

	public void setName(String name) { = name;

	public String getType() {
		return type;

	public void setType(String type) {
		this.type = type;

	public abstract void addJob(Job job);
	public abstract List<Job> getJobList();


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
Taiwan Taiwan
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170813.1 | Last Updated 12 Dec 2008
Article Copyright 2008 by RipleyKuo
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid