|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cmc.tcgui.datadef.DataDefinitionContainer
Serves as a container for all the Datadef objects created during parsing of XML definition files. It is either created empty, with implicit constructor, and to fill it with required objects, definition reading methods should be called, or preferably its filled with objects accessible through supplied resource manager. To get objects contained, use methods of DataDefinition interface, which is implemented by this container.
Constructor Summary | |
DataDefinitionContainer()
Creates new instance of empty DataDefinitionContainer. |
|
DataDefinitionContainer(ResourceManager rm)
Creates new instance of DataDefinitionContainer filled with objects accessible through supplied resource manager. |
Method Summary | |
boolean |
addDefinitionFromInputStream(InputStream is)
Reads definition from InputStream 'is' and parses it with XtcParser. |
boolean |
addDefinitionsFromDirectory(String directoryPath,
String datadefExt)
Searches for all files in directory 'directoryPath' which have correct extension as defined by supplied ResourceManager 'rm'. |
TCFilter[] |
getAllFilters()
Returns Map containing instances of TCFilter representing all supported filters. |
TCQdisc[] |
getAllQdiscs()
Returns Map containing instances of TCQdisc representing all supported qdiscs. |
TCFilter |
getFilter(String name)
Returns TCFilter instance representing filter with tc name 'name' from all supported filters. |
TCFilter |
getFilterAt(int index)
Returns TCFilter instance representing filter at position 'index' in the list of all supported filters. |
int |
getFilterCount()
Returns number of supported filters. |
TCQdisc |
getQdisc(String name)
Returns TCQdisc instance representing qdisc with tc name 'name' from all supported qdiscs. |
TCQdisc |
getQdiscAt(int index)
Returns TCQdisc instance representing qdisc at position 'index' in the list of all supported qdiscs. |
int |
getQdiscCount()
Returns number of supported qdiscs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataDefinitionContainer()
public DataDefinitionContainer(ResourceManager rm)
rm
- resource manager used to get objects for filling the containerMethod Detail |
public TCQdisc[] getAllQdiscs()
getAllQdiscs
in interface DataDefinition
public TCQdisc getQdiscAt(int index)
getQdiscAt
in interface DataDefinition
index
- index in the list of supported qdiscs
public int getQdiscCount()
getQdiscCount
in interface DataDefinition
public TCQdisc getQdisc(String name)
getQdisc
in interface DataDefinition
name
- tc name of qdisc to return
public TCFilter[] getAllFilters()
getAllFilters
in interface DataDefinition
public TCFilter getFilterAt(int index)
getFilterAt
in interface DataDefinition
index
- index in the list of supported filters
public int getFilterCount()
getFilterCount
in interface DataDefinition
public TCFilter getFilter(String name)
getFilter
in interface DataDefinition
name
- tc name of filter to return
public boolean addDefinitionFromInputStream(InputStream is)
is
- InputStream from which to read definition for parsing
public boolean addDefinitionsFromDirectory(String directoryPath, String datadefExt)
directoryPath
- directory in which to search for definition filesdatadefExt
- extension of definition files
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |