Class DefaultTagValueMetadatasProvider
- java.lang.Object
-
- org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
-
- All Implemented Interfaces:
TagValueMetadatasProvider
- Direct Known Subclasses:
EugeneCoreTagValues
public abstract class DefaultTagValueMetadatasProvider extends Object implements TagValueMetadatasProvider
Created on 24/09/16.- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<TagValueDefinitionMatcher>
matcher
protected Set<TagValueMetadata>
tagValues
-
Constructor Summary
Constructors Constructor Description DefaultTagValueMetadatasProvider(TagValueMetadata... tagValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <M extends TagValueDefinitionMatcher>
Set<TagValueMetadata>getDefinitionForMatcher(Class<M> matcherType)
com.google.common.base.Optional<TagValueMetadata>
getTagValue(String tagValueName)
Set<TagValueMetadata>
getTagValues()
void
validate(String tagValueName, Class<?> type)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider
getDescription
-
-
-
-
Field Detail
-
tagValues
protected final Set<TagValueMetadata> tagValues
-
matcher
protected final Set<TagValueDefinitionMatcher> matcher
-
-
Constructor Detail
-
DefaultTagValueMetadatasProvider
public DefaultTagValueMetadatasProvider(TagValueMetadata... tagValues)
-
-
Method Detail
-
getTagValues
public Set<TagValueMetadata> getTagValues()
- Specified by:
getTagValues
in interfaceTagValueMetadatasProvider
-
validate
public void validate(String tagValueName, Class<?> type) throws TagValueNotFoundException, MismatchTagValueTargetException
- Specified by:
validate
in interfaceTagValueMetadatasProvider
- Throws:
TagValueNotFoundException
MismatchTagValueTargetException
-
getTagValue
public com.google.common.base.Optional<TagValueMetadata> getTagValue(String tagValueName)
- Specified by:
getTagValue
in interfaceTagValueMetadatasProvider
-
getDefinitionForMatcher
protected <M extends TagValueDefinitionMatcher> Set<TagValueMetadata> getDefinitionForMatcher(Class<M> matcherType)
-
-