public class Property extends Node
Node.Acceptance| Modifier and Type | Field and Description |
|---|---|
protected SourceOrTarget |
origin
Origin
|
| Constructor and Description |
|---|
Property(String id,
SourceOrTarget origin,
boolean optional)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsChild(Node n)
return if Child is accepted
|
byte |
getMaxChilds()
returns maxChilds
|
SourceOrTarget |
getOrigin()
Getter Origin
|
Set<String> |
identifiers()
returns identifiers
|
boolean |
isOptional() |
void |
setOptional(boolean optional) |
Set<Class<? extends Node>> |
validChildClasses()
validChildClasses
|
acceptsChildWithReason, addChild, createNode, equals, equals, getChilds, hasFrontParameters, isComplete, isValidParentOf, overwriteParent, pushDownColor, removeChild, removeParent, toStringprotected final SourceOrTarget origin
public Property(String id, SourceOrTarget origin, boolean optional)
id - of propertyorigin - of propertypublic Set<String> identifiers()
identifiers in class Nodepublic byte getMaxChilds()
getMaxChilds in class Nodepublic Set<Class<? extends Node>> validChildClasses()
validChildClasses in class Nodepublic boolean acceptsChild(Node n)
acceptsChild in class Noden - node to testpublic SourceOrTarget getOrigin()
public boolean isOptional()
public void setOptional(boolean optional)
Copyright © 2018. All rights reserved.