B - the blueprint class. The blueprint is used to create a new element.U - the update class. The update class is used to update the element.public abstract class AbstractElement<B extends Blueprint,U extends AbstractElement.Update> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractElement.Blueprint |
static class |
AbstractElement.Update |
static class |
AbstractElement.Updater<U extends AbstractElement.Update,E extends AbstractElement<?,U>> |
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_PROPERTY |
protected Map<String,Object> |
properties |
| Modifier and Type | Method and Description |
|---|---|
abstract <R,P> R |
accept(ElementVisitor<R,P> visitor,
P parameter)
Accepts the provided visitor.
|
boolean |
equals(Object o) |
String |
getId() |
CanonicalPath |
getPath() |
Map<String,Object> |
getProperties() |
int |
hashCode() |
abstract AbstractElement.Updater<U,? extends AbstractElement<?,U>> |
update() |
protected static <T> T |
valueOrDefault(T value,
T defaultValue) |
public static final String ID_PROPERTY
public abstract <R,P> R accept(ElementVisitor<R,P> visitor, P parameter)
R - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorpublic CanonicalPath getPath()
public String getId()
public Map<String,Object> getProperties()
protected static <T> T valueOrDefault(T value,
T defaultValue)
public abstract AbstractElement.Updater<U,? extends AbstractElement<?,U>> update()
Copyright © 2015 Red Hat, Inc.. All rights reserved.