public class InjectableAttributeImpl extends Object implements InjectableAttribute
Constructor and Description |
---|
InjectableAttributeImpl(String attribute,
Collection<String> metacardTypes)
Constructs an
InjectableAttributeImpl with the given attribute name and metacard type
names. |
Modifier and Type | Method and Description |
---|---|
String |
attribute()
Returns the name of the
AttributeDescriptor to be injected. |
Set<String> |
metacardTypes()
Returns the names of the
MetacardType s into which this attribute should be injected. |
public InjectableAttributeImpl(String attribute, @Nullable Collection<String> metacardTypes)
InjectableAttributeImpl
with the given attribute name and metacard type
names.
If this attribute should be injected into all MetacardType
s, then
metacardTypes
should be null or empty.
attribute
- the name of the attribute that this InjectableAttributeImpl
represents, cannot be nullmetacardTypes
- the names of the MetacardType
s into which the
attribute named attribute
should be injected, can be nullIllegalArgumentException
- if attribute
is nullpublic String attribute()
InjectableAttribute
AttributeDescriptor
to be injected.attribute
in interface InjectableAttribute
AttributeDescriptor
to be injectedpublic Set<String> metacardTypes()
InjectableAttribute
MetacardType
s into which this attribute should be injected.
Should return an empty set if this attribute should be injected into all MetacardType
s.
metacardTypes
in interface InjectableAttribute
MetacardType
s into which this attribute should be injected, or
an empty set if this attribute should be injected into all MetacardType
sThis work is licensed under a Creative Commons Attribution 4.0 International License.