ValueElement.java :  » Database-DBMS » Ozone-1.1 » org » ozoneDB » core » xml » Java Open Source

Java Open Source » Database DBMS » Ozone 1.1 
Ozone 1.1 » org » ozoneDB » core » xml » ValueElement.java
// You can redistribute this software and/or modify it under the terms of
// the Ozone Core License version 1 published by ozone-db.org.
//
// The original code and portions created by SMB are
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
//
// $Id: ValueElement.java,v 1.1 2001/12/18 10:31:31 per_nyfelt Exp $

package org.ozoneDB.core.xml;

import org.xml.sax.*;

/**
 * This class saves all attributes of the valueElement.
 * 
 * @version $Revision: 1.1 $
 * @author <a href="http://www.softwarebuero.de">SMB</a>
 */
public class ValueElement implements Consts {

    //
    // member
    //
    
    /**
     * The type of the value.
     */
  private String type;

    /**
     * The id of the value.
     */
  private String id;

    /**
     * Value as a String.
     */
  private String strValue;
          
    //
    // constructor
    //
    
    /**
     * @param atts (the attributes)    
     */
  ValueElement(Attributes atts) {
    type = atts.getValue(ATTR_TYPE);
    id = atts.getValue(ATTR_ID);
  }
  
    //
    // methods
    //

    /**
     */
  public void setStrValue(String strValue) {
    this.strValue = strValue;
  }

    /**
     */
  public String getType() {
    return type;
  }
  
    /**
     */
  public String getId() {
    return id;
  }

    /**
     */
  public String getStrValue() {
    return strValue;
  }

    /**
     */
  public String toString() {
    return ("ValueElement: " + type  );
  }
}

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.