Package org.antlr.gunit.swingui.model

## Class Rule

- java.lang.Object
- - javax.swing.AbstractListModel<E>
  - - javax.swing.DefaultListModel
    - - org.antlr.gunit.swingui.model.Rule

    public class Rule
    extends javax.swing.DefaultListModel

ANTLR v3 Rule Information.

Author:
  scai
See Also:
  Serialized Form

### Field Summary

### Fields inherited from class javax.swing.AbstractListModel

`listenerList`

### Constructor Summary

Constructors
`Rule​(java.lang.String name)`

### Method Summary

All Methods Instance Methods Concrete Methods
`void` `addTestCase​(TestCase newItem)`
`java.lang.String` `getName​()`
`boolean` `getNotEmpty​()`
`java.util.List<TestCase>` `getTestCases​()`
`java.lang.String` `toString​()`

### Methods inherited from class javax.swing.AbstractListModel

`addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener`

### Methods inherited from class javax.swing.DefaultListModel

`add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, trimToSize`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Constructor Detail

#### Rule

    public Rule​(java.lang.String name)

### Method Detail

#### getName

    public java.lang.String getName​()

#### getNotEmpty

    public boolean getNotEmpty​()

#### toString

    public java.lang.String toString​()

Overrides:
  `toString` in class `javax.swing.DefaultListModel`

#### addTestCase

    public void addTestCase​(TestCase newItem)

#### getTestCases

    public java.util.List<TestCase> getTestCases​()