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

org.cybergarage.xml.Attribute Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
/******************************************************************
*
*	CyberXML for Java
*
*	Copyright (C) Satoshi Konno 2002
*
*	File: Attribute.java
*
*	Revision;
*
*	11/27/02
*		- first revision.
*
******************************************************************/

package org.cybergarage.xml;

public class Attribute 
{
	private String name = new String(); 
	private String value = new String(); 

	public Attribute() 
	{
	}

	public Attribute(String name, String value) 
	{
		this();
		setName(name);
		setValue(value);
	}

	public Attribute(Attribute otherAttr) 
	{
		this();
		set(otherAttr);
	}
	
	////////////////////////////////////////////////
	//	name
	////////////////////////////////////////////////

	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}

	////////////////////////////////////////////////
	//	value
	////////////////////////////////////////////////

	public void setValue(String value) 
	{
		this.value = value;
	}

	public String getValue() 
	{
		return value;
	}

	////////////////////////////////////////////////
	//	set
	////////////////////////////////////////////////

	public void set(Attribute otherAttr) 
	{
		setName(otherAttr.getName());
		setValue(otherAttr.getValue());
	}
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy