public abstract class AbstractElement extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractElement.Blueprint |
| Modifier and Type | Field and Description |
|---|---|
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() |
static SegmentType |
segmentTypeFromType(Class<?> cl)
Returns the same result as
SegmentType.fromElementType(Class) but provides a much better performance. |
static Class<? extends AbstractElement> |
toElementClass(SegmentType elementType)
This should be used only in extreme cases where
SegmentType is not possible. |
public static Class<? extends AbstractElement> toElementClass(SegmentType elementType)
SegmentType is not possible.elementType - the type of the elementpublic static SegmentType segmentTypeFromType(Class<?> cl)
SegmentType.fromElementType(Class) but provides a much better performance.cl - the type to to map to a SegmentTypeSegmentType corresponding to the given clIllegalStateException - if there is no SegmentType corresponding to the given clpublic 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()
Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.