org.japano.metadata
Class Attribute
java.lang.Object
org.japano.metadata.Attribute
- All Implemented Interfaces:
- XMLNode
public class Attribute
- extends java.lang.Object
- implements XMLNode
A generic tag attribute.
- Version:
- $Id: Attribute.java,v 1.6 2005/11/18 19:58:03 fforw Exp $
- Author:
- Sven Helmberger ( sven dot helmberger at gmx dot de )
Constructor Summary |
Attribute(java.lang.String name,
boolean required,
boolean rtexprvalue,
java.lang.String type,
java.lang.String description)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
required
protected boolean required
rtexprvalue
protected boolean rtexprvalue
type
protected java.lang.String type
description
protected java.lang.String description
Attribute
public Attribute(java.lang.String name,
boolean required,
boolean rtexprvalue,
java.lang.String type,
java.lang.String description)
getName
public java.lang.String getName()
isRequired
public boolean isRequired()
getDescription
public java.lang.String getDescription()
getType
public java.lang.String getType()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toXML
public XMLElement toXML()
- Description copied from interface:
XMLNode
- Creates an XMLElement from this XMLNode and its children.
- Specified by:
toXML
in interface XMLNode
- Returns:
- XMLElement
dumpInfo
public void dumpInfo(java.lang.StringBuffer buf)