Class ProtoFieldMetadata
- java.lang.Object
-
- org.infinispan.protostream.annotations.impl.ProtoFieldMetadata
-
- All Implemented Interfaces:
HasProtoSchema
public final class ProtoFieldMetadata extends Object implements HasProtoSchema
- Since:
- 3.0
- Author:
- anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateProto(IndentWriter iw)XClassgetCollectionImplementation()ObjectgetDefaultValue()StringgetDocumentation()XFieldgetField()XMethodgetGetter()XClassgetJavaType()The Java type.StringgetJavaTypeName()StringgetLocation()StringgetName()intgetNumber()StringgetOneof()StringgetPropertyName()TypegetProtobufType()ProtoTypeMetadatagetProtoTypeMetadata()XMethodgetSetter()booleanisArray()booleanisBoxedPrimitive()booleanisPrimitive()booleanisRepeated()booleanisRequired()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.protostream.annotations.impl.HasProtoSchema
toProtoSchema
-
-
-
-
Method Detail
-
getNumber
public int getNumber()
-
getName
public String getName()
-
getPropertyName
public String getPropertyName()
-
getOneof
public String getOneof()
-
getJavaType
public XClass getJavaType()
The Java type. If this field is repeatable then the collection/array element type is returned here.
-
getJavaTypeName
public String getJavaTypeName()
-
getCollectionImplementation
public XClass getCollectionImplementation()
-
getProtobufType
public Type getProtobufType()
-
getProtoTypeMetadata
public ProtoTypeMetadata getProtoTypeMetadata()
-
getDocumentation
public String getDocumentation()
-
isRequired
public boolean isRequired()
-
isRepeated
public boolean isRepeated()
-
isArray
public boolean isArray()
-
getDefaultValue
public Object getDefaultValue()
-
getField
public XField getField()
-
getGetter
public XMethod getGetter()
-
getSetter
public XMethod getSetter()
-
getLocation
public String getLocation()
-
generateProto
public void generateProto(IndentWriter iw)
- Specified by:
generateProtoin interfaceHasProtoSchema
-
isPrimitive
public boolean isPrimitive()
-
isBoxedPrimitive
public boolean isBoxedPrimitive()
-
-