Interface MetadataSource.PropertyConsumer
-
- Enclosing class:
- MetadataSource
public static interface MetadataSource.PropertyConsumerThis interface is implemented by objects that want to access textual metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProperty(Member m, java.lang.String name, java.lang.Object value)Called when a new property is ready to be consumed.voiddoneAddingBlock()voiddoneAddingProperties()Called after all properties have been added.booleanisValid()A metadata source may call this while processing metadata to determine if the consumer is still interested in this data.
-
-
-
Method Detail
-
addProperty
void addProperty(Member m, java.lang.String name, java.lang.Object value)
Called when a new property is ready to be consumed.- Parameters:
name- the name of the propertyvalue- the value of the property
-
doneAddingBlock
void doneAddingBlock()
-
doneAddingProperties
void doneAddingProperties()
Called after all properties have been added.
-
isValid
boolean isValid()
A metadata source may call this while processing metadata to determine if the consumer is still interested in this data. This allows the source to terminate expensive operations that are no longer of interest. This may be called from any thread.- Returns:
trueif the consumer is still interested in this data
-
-