ProjectObjects.java :  » Source-Control » sourcejammer » org » sourcejammer » server » keywords » Java Open Source

Java Open Source » Source Control » sourcejammer 
sourcejammer » org » sourcejammer » server » keywords » ProjectObjects.java
/*
 *  Copyright (C) 2001, 2002 Robert MacGrogan
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 *
 * $Archive: SourceJammer$
 * $FileName: ProjectObjects.java$
 * $FileID: 4471$
 *
 * Last change:
 * $AuthorName: Rob MacGrogan$
 * $Date: 4/23/03 5:19 PM$
 * $Comment: Replaced GPL header with LGPL header.$
 */

package org.sourcejammer.server.keywords;

import org.sourcejammer.project.ArchiveInfoFlex;
import org.sourcejammer.project.controller.ProjectNode;
import org.sourcejammer.project.controller.FileNode;
import org.sourcejammer.project.model.NodeLibrary;
import org.sourcejammer.server.security.User;
import org.sourcejammer.project.view.NodeInfo;

/**
 * Title:        $FileName: ProjectObjects.java$
 * @version      $VerNum: 3$
 * @author       $AuthorName: Rob MacGrogan$<br><br>
 *
 * $Description: Parse and expand keywords.$<br>
 * $KeyWordsOff: $
 *
 * A repository for project/file related objects that might be needed
 * by an implementation of KeywordExpander. This seems like a messy way
 * to do this, but making all the object available to all expanders is much
 * faster than using if/then's to figure out what keyword we have and what
 * object is actually needed.
 */
public class ProjectObjects {

  private ArchiveInfoFlex archInfo = null;
  private ProjectNode projNode = null;
  private FileNode flNode = null;
  private NodeLibrary library = null;
  private User user = null;
  private NodeInfo verNode = null;
  private String currentComment = null;

  public ProjectObjects() {
  }

  public void setArchInfo(ArchiveInfoFlex o){
    archInfo = o;
  }
  public ArchiveInfoFlex getArchInfo(){
    return archInfo;
  }

  public ProjectNode getProjNode(){
    return projNode;
  }

  public void setFileNode(FileNode nd){
    flNode = nd;
  }
  public FileNode getFileNode(){
    return flNode;
  }

  public void setLibrary(NodeLibrary lib){
    library = lib;
  }
  public NodeLibrary getLibrary(){
    return library;
  }

  public void setUser(User u){
    user = u;
  }
  public User getUser(){
    return user;
  }

  public void setVersion(NodeInfo nd){
    verNode = nd;
  }
  public NodeInfo getVersion(){
    return verNode;
  }

  public void setCurrentComment(String s){
    currentComment = s;
  }
  public String getCurrentComment(){
    return currentComment;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.