public abstract class ElementWithCardinality extends Object implements Element
GrammarItem.ItemTypeINDENT| Constructor and Description |
|---|
ElementWithCardinality(GrammarItem content) |
| Modifier and Type | Method and Description |
|---|---|
GrammarItem |
extractContent() |
List<GrammarItem> |
getChildren()
get the child items as a list.
|
protected String |
getContentStructure(String indent) |
abstract int |
getMin() |
GrammarItem.ItemType |
getType()
what type, in terms of how to process its conversion to main grammar
|
boolean |
isKeywordPart()
Could this be part or all of a keyword ? Is either a letter or all of its parts are letters
|
boolean |
isPlural()
are there more than one of these items.
|
abstract boolean |
isUnbounded() |
GrammarItem |
reachThrough()
if this item is a wrapper round a single item, get that one.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStructurepublic ElementWithCardinality(GrammarItem content)
public GrammarItem.ItemType getType()
GrammarItemgetType in interface GrammarItempublic List<GrammarItem> getChildren()
GrammarItemgetChildren in interface GrammarItempublic abstract int getMin()
public abstract boolean isUnbounded()
public boolean isPlural()
GrammarItemisPlural in interface GrammarItempublic boolean isKeywordPart()
GrammarItemisKeywordPart in interface GrammarItempublic GrammarItem extractContent()
public GrammarItem reachThrough()
GrammarItemreachThrough in interface GrammarItemCopyright © 2019. All rights reserved.