| Modifier and Type | Class and Description |
|---|---|
static class |
GeneralType.Factory |
| Modifier | Constructor and Description |
|---|---|
protected |
GeneralType(String name) |
protected |
GeneralType(String name,
boolean primitiveType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectorLabel(SelectorLabel selectorLabel,
String defaultValue) |
Map<SelectorLabel,String> |
getSelectorLabels() |
boolean |
hasSelectorLabel(SelectorLabel selectorLabel)
Checks whether a node with this type has an outgoing selector label
with the given name.
|
boolean |
isOptional(SelectorLabel selectorLabel) |
boolean |
isPrimitiveType() |
String |
toString() |
boolean |
typeEquals(Object other)
Checks whether two types are equal.
|
protected GeneralType(String name)
name - The name of the type to be created.protected GeneralType(String name, boolean primitiveType)
public boolean typeEquals(Object other)
other - Another type.public boolean hasSelectorLabel(SelectorLabel selectorLabel)
TypehasSelectorLabel in interface TypeselectorLabel - The selector label in questionpublic void addSelectorLabel(SelectorLabel selectorLabel, String defaultValue)
addSelectorLabel in interface TypeselectorLabel - the selector label to be added to this typepublic Map<SelectorLabel,String> getSelectorLabels()
getSelectorLabels in interface Typepublic boolean isOptional(SelectorLabel selectorLabel)
isOptional in interface Typepublic boolean isPrimitiveType()
isPrimitiveType in interface TypeCopyright © 2019. All rights reserved.