public class RecordMetaData extends Object
Constructor and Description |
---|
RecordMetaData(String name,
List<FieldMetaData> fields)
public constructor.
|
RecordMetaData(String name,
List<FieldMetaData> fields,
boolean wildCardRecord)
public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
assertValidFieldName(String fieldName)
Assert that the supplied field name is one of the field names associated
with this record.
|
List<String> |
getFieldNames()
Get a collection of all the field names (excluding ignored fields) in
this record.
|
List<FieldMetaData> |
getFields()
Get the record fields metadata.
|
int |
getIgnoredFieldCount()
Get the number of fields in this record that are ignored.
|
String |
getName()
Get the record name.
|
int |
getUnignoredFieldCount()
Get the number of fields in this record that are not ignored.
|
boolean |
isWildCardRecord()
Is this a wildcard record.
|
public RecordMetaData(String name, List<FieldMetaData> fields)
name
- Record name.fields
- Record fields metadata.public RecordMetaData(String name, List<FieldMetaData> fields, boolean wildCardRecord)
name
- Record name.fields
- Record fields metadata.wildCardRecord
- Wildcard record. Accept any fields and generate the
field names based on index.public String getName()
public List<FieldMetaData> getFields()
public boolean isWildCardRecord()
public int getIgnoredFieldCount()
public int getUnignoredFieldCount()
public List<String> getFieldNames()
public void assertValidFieldName(String fieldName)
fieldName
- The field name to test.Copyright © 2020. All rights reserved.