|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface defines required methods for all parsers, which provide a ClassHierarchy. Any instance of an implementing class will need to be initiated by the init-method if a Parser is supposed to validate a given ClassHierarchy with respect to a definition of Instances.
Method Summary | |
ClassHierarchy |
getClassHierarchy()
Returns the ClassHierarchy decoded out of the given encodedHierarchy. |
java.lang.String |
getEncodedHierarchy()
Returns the currently set encoded hierarchy. |
void |
init(Instances instanceInfo)
Initiation of a ClassHierarchyParser should enable it to validate a given encoded hierarchy. |
void |
setEncodedHierarchy(java.lang.String encodedHierarchy)
Sets the encoded hierarchy to be decoded by this ClassHierarchyParser. |
boolean |
validate()
Validates the currently set EncodedHierarchy with respect to the current initialization. |
Method Detail |
public void init(Instances instanceInfo) throws UnsupportedAttributeTypeException
instanceInfo
- the information regarding the type of instances
to be covered by a parsed hierarchy
UnsupportedAttributeTypeException
- any implementation should
ensure the class-attribute to be nominalpublic ClassHierarchy getClassHierarchy() throws java.text.ParseException
java.text.ParseException
- in case of a invalid hierarchy-code with respect to the Instances set int the init(Instances)
-methodpublic void setEncodedHierarchy(java.lang.String encodedHierarchy)
encodedHierarchy
- the encoded hierarchy to be decodedpublic java.lang.String getEncodedHierarchy()
public boolean validate() throws java.text.ParseException
java.text.ParseException
- if the currently set encodedHIerarchy is invalid in any way
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |