Interface DescriptorElement
- All Known Subinterfaces:
AlternativeListElement,ChildrenListElement,ValueElement
- All Known Implementing Classes:
ConveredValueElement,ConvertedAlternativeListElement,ConvertedChildrenListElement
public interface DescriptorElement
Base element definition to reflect meaningful Impex header structure. For instance A|B,C(D[lang=en]|E)
To use this class you have to check for the concrete implementing type:
To use this class you have to check for the concrete implementing type:
ValueElement: Represents low level element in the structure. For instance: A(B).AlternativeListElement: Represents alternatives collection. For instance: A|B.ChildrenListElement: Represents lists of elements. For instance: A,B.
Usage:
DescriptorElement element = ...; if (element instanceof ValueElement) { // some action } else if (element instanceof ChildrenListElement) { // some action } else if (element instanceof AlternativeListElement) { // some action }