T
- type of provided elementspublic abstract class DefinitionProviderWrapper<T> extends Object implements DefinitionProvider<T>
DefinitionProvider
.Modifier | Constructor and Description |
---|---|
protected |
DefinitionProviderWrapper(DefinitionProvider<T> delegate) |
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the underlying bean if and only if it is successfully resolved, is valid, and is enabled.
|
List<DefinitionDecorator<T>> |
getDecorators() |
protected DefinitionProvider<T> |
getDelegate() |
List<String> |
getErrorMessages() |
DefinitionMetadata |
getMetadata() |
DefinitionRawView |
getRaw()
Returns a
DefinitionRawView representation the underlying bean; it might be
invalid, partially resolved and/or disabled. |
boolean |
isValid() |
protected DefinitionProviderWrapper(DefinitionProvider<T> delegate)
public DefinitionMetadata getMetadata()
getMetadata
in interface DefinitionProvider<T>
public T get()
DefinitionProvider
get
in interface DefinitionProvider<T>
public DefinitionRawView getRaw()
DefinitionProvider
DefinitionRawView
representation the underlying bean; it might be
invalid, partially resolved and/or disabled.getRaw
in interface DefinitionProvider<T>
public boolean isValid()
isValid
in interface DefinitionProvider<T>
public List<String> getErrorMessages()
getErrorMessages
in interface DefinitionProvider<T>
protected DefinitionProvider<T> getDelegate()
public List<DefinitionDecorator<T>> getDecorators()
getDecorators
in interface DefinitionProvider<T>
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.