org.xanot.dtd
Interface DtdModel

All Known Implementing Classes:
DefaultDtdModel

public interface DtdModel

This is the interface model of DTD file structures. DTD file may contains list of elements and attributes. Using this interface model one could browse through the elements and attributes.

Author:
Ferdinand Neman (newm4n_at_gmail.com)

Method Summary
 int dtdAttListCount()
          Get numbers of attList element within the dtd file.
 int dtdElementCount()
          Get numbers of Element within the dtd file.
 DtdAttList getDtdAttListAt(int idx)
          Get attList model object at specific index.
 java.util.ArrayList<DtdAttList> getDtdAttLists()
          Get list of attList element of DTD.
 DtdElement getDtdElement(java.lang.String name)
          Get Element model object by giving its name
 DtdElement getDtdElementAt(int idx)
          Get Element model object at specific index.
 java.util.ArrayList<DtdElement> getDtdElements()
          Get list of elements element of DTD.
 

Method Detail

getDtdAttLists

java.util.ArrayList<DtdAttList> getDtdAttLists()
Get list of attList element of DTD. the Att list is always in sequence as the dtd file have put it.

Returns:
List of DtdAttList model objects.

getDtdElements

java.util.ArrayList<DtdElement> getDtdElements()
Get list of elements element of DTD. The Element is always in sequence as the dtd file have put it.

Returns:
List of DtdElement model objects.

dtdAttListCount

int dtdAttListCount()
Get numbers of attList element within the dtd file.

Returns:
Number of attList element inside dtd.

dtdElementCount

int dtdElementCount()
Get numbers of Element within the dtd file.

Returns:
Number of Element inside dtd.

getDtdAttListAt

DtdAttList getDtdAttListAt(int idx)
Get attList model object at specific index.

Parameters:
idx - Index
Returns:
DtdAttList object at specified index.

getDtdElementAt

DtdElement getDtdElementAt(int idx)
Get Element model object at specific index.

Parameters:
idx - Index
Returns:
DtdAttList object at specific index.

getDtdElement

DtdElement getDtdElement(java.lang.String name)
Get Element model object by giving its name

Parameters:
name - Element name
Returns:
Element.


Copyright 2006 null. All Rights Reserved.