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:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateProto(IndentWriter iw)
XClass
getCollectionImplementation()
Object
getDefaultValue()
String
getDocumentation()
XField
getField()
XMethod
getGetter()
XClass
getJavaType()
The Java type.String
getJavaTypeName()
String
getLocation()
String
getName()
int
getNumber()
String
getPropertyName()
Type
getProtobufType()
ProtoTypeMetadata
getProtoTypeMetadata()
XMethod
getSetter()
boolean
isArray()
boolean
isBoxedPrimitive()
boolean
isPrimitive()
boolean
isRepeated()
boolean
isRequired()
String
toString()
-
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()
-
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:
generateProto
in interfaceHasProtoSchema
-
isPrimitive
public boolean isPrimitive()
-
isBoxedPrimitive
public boolean isBoxedPrimitive()
-
-