public final class ValueField
extends java.lang.Object
IEventSinkFactory.create
.Modifier and Type | Field and Description |
---|---|
private ContentType<?> |
contentType |
private java.lang.String |
description |
private java.lang.String |
identifier |
private java.lang.String |
name |
Constructor and Description |
---|
ValueField(IAttribute<?> attribute)
Create a value field matching an
IAttribute . |
ValueField(java.lang.String identifier,
java.lang.String name,
java.lang.String description,
ContentType<?> contentType)
Create a value field.
|
Modifier and Type | Method and Description |
---|---|
ContentType<?> |
getContentType() |
java.lang.String |
getDescription() |
java.lang.String |
getIdentifier() |
java.lang.String |
getName() |
boolean |
matches(IAttribute<?> a)
Check if a value field matches an attribute.
|
java.lang.String |
toString() |
private final java.lang.String identifier
private final java.lang.String name
private final java.lang.String description
private final ContentType<?> contentType
public ValueField(IAttribute<?> attribute)
IAttribute
.attribute
- attribute to matchpublic ValueField(java.lang.String identifier, java.lang.String name, java.lang.String description, ContentType<?> contentType)
identifier
- field IDname
- human readable field namedescription
- human readable field descriptioncontentType
- content type of the fieldpublic java.lang.String getIdentifier()
public java.lang.String getName()
public java.lang.String getDescription()
public ContentType<?> getContentType()
public boolean matches(IAttribute<?> a)
a
- attribute to matchtrue
if the value field and the attribute match, false
if notpublic java.lang.String toString()
toString
in class java.lang.Object