|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PuzzleComponent
The first purpose of this interface is to provide a kind of "piece of a puzzle" representing the key definitions of a schema and their relationship:
The second purpose of this interface is to hide the differences between one definition and a Collection of definitions. By this you will be able to use single definitions and collections of definitions as method parameters. The method getCollection() is a helper method for this.
Method Summary | |
---|---|
boolean |
canHaveText()
Determines whether this PuzzleComponent allows a text node as child. |
PuzzlePieceSet |
getAttributes()
ELEMENT PuzzlePiece only: Get all attribute Definitions |
PuzzlePieceSet |
getChildElements()
ELEMENT PuzzlePiece only: Get all child element Definitions |
Collection<PuzzlePiece> |
getCollection()
Method to treat NamedDefined as a Collection of PuzzlePiece |
PuzzlePieceSet |
getDatatypes()
ATTRIBUTE PuzzlePiece only: Get all datatype Definitions |
PuzzlePieceSet |
getParents()
Get all parent Definitions |
MSVExpressionType |
getType()
Get type of PuzzlePiece [ELEMENT, ATTRIBUTE, VALUE, DATA] |
PuzzlePieceSet |
getValues()
ATTRIBUTE PuzzlePiece only: Get all value Definitions |
boolean |
isSingleton(PuzzleComponent child)
Determines whether the child PuzzlePiece(s) is/are singleton(s) Convention: If child is a collection this method returns false if one child element is no singleton. |
Method Detail |
---|
PuzzlePieceSet getChildElements()
PuzzlePieceSet getAttributes()
PuzzlePieceSet getDatatypes()
PuzzlePieceSet getValues()
PuzzlePieceSet getParents()
MSVExpressionType getType()
boolean canHaveText()
boolean isSingleton(PuzzleComponent child)
child
- PuzzleComponent child
Collection<PuzzlePiece> getCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |