com.bluecast.xml

Class ElementDefinition


public final class ElementDefinition
extends java.lang.Object

A class to hold information about an element defined within an XML document type declaration.
Version:
$Revision: 1.3 $
Author:
Yuval Oren, yuval@bluecast.com

Constructor Summary

ElementDefinition()
ElementDefinition(String name)

Method Summary

void
addAttribute(AttributeDefinition attrib)
AttributeDefinition
getAttribute(int index)
int
getAttributeCount()
AttributeDefinition[]
getAttributes()
IndexedObject
getIndexedAttribute(String name)
String
getName()
void
setName(String name)

Constructor Details

ElementDefinition

public ElementDefinition()

ElementDefinition

public ElementDefinition(String name)

Method Details

addAttribute

public final void addAttribute(AttributeDefinition attrib)
            throws DuplicateKeyException

getAttribute

public final AttributeDefinition getAttribute(int index)

getAttributeCount

public final int getAttributeCount()

getAttributes

public final AttributeDefinition[] getAttributes()

getIndexedAttribute

public final IndexedObject getIndexedAttribute(String name)

getName

public final String getName()

setName

public final void setName(String name)