public final class MessageType extends GroupType
Type.Repetition
Constructor and Description |
---|
MessageType(String name,
List<Type> fields) |
MessageType(String name,
Type... fields) |
Modifier and Type | Method and Description |
---|---|
void |
accept(TypeVisitor visitor)
Visits this type with the given visitor
|
void |
checkContains(Type subType) |
boolean |
containsPath(String[] path) |
<T> T |
convertWith(TypeConverter<T> converter) |
ColumnDescriptor |
getColumnDescription(String[] path) |
List<ColumnDescriptor> |
getColumns() |
int |
getMaxDefinitionLevel(String... path) |
int |
getMaxRepetitionLevel(String... path) |
List<String[]> |
getPaths() |
Type |
getType(String... path) |
MessageType |
union(MessageType toMerge) |
void |
writeToStringBuilder(StringBuilder sb,
String indent)
Writes a string representation to the provided StringBuilder
|
containsField, containsPath, convertChildren, getFieldCount, getFieldIndex, getFieldName, getFields, getMaxDefinitionLevel, getMaxRepetitionLevel, getPaths, getType, getType, getType, isPrimitive, typeEquals, typeHashCode, union
asGroupType, asPrimitiveType, equals, getName, getOriginalType, getRepetition, hashCode, isRepetition, toString
public MessageType(String name, Type... fields)
name
- the name of the typefields
- the fields contained by this messagepublic void accept(TypeVisitor visitor)
public void writeToStringBuilder(StringBuilder sb, String indent)
writeToStringBuilder
in class GroupType
sb
- the StringBuilder to write itself topublic int getMaxRepetitionLevel(String... path)
public int getMaxDefinitionLevel(String... path)
public ColumnDescriptor getColumnDescription(String[] path)
public List<ColumnDescriptor> getColumns()
public void checkContains(Type subType)
public <T> T convertWith(TypeConverter<T> converter)
public boolean containsPath(String[] path)
public MessageType union(MessageType toMerge)
Copyright © 2015. All rights reserved.