Class ProtoTypeMetadata
java.lang.Object
org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
- All Implemented Interfaces:
HasProtoSchema
- Direct Known Subclasses:
CompileTimeImportedProtoTypeMetadata,ImportedProtoTypeMetadata,ProtoEnumTypeMetadata,ProtoMessageTypeMetadata
- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidappendDocumentation(IndentWriter iw, String documentation) voidgenerateProto(IndentWriter iw, ProtoSyntax syntax) At this level we pretend the Java class and the annotated class are one and the same, but subclasses may decide otherwise.abstract ProtoEnumValueMetadatagetEnumMemberByName(String name) This is only for enums.abstract ProtoEnumValueMetadatagetEnumMemberByNumber(int number) The schema file where this type comes from.getName()final ProtoMessageTypeMetadataString[]booleanabstract booleanisEnum()booleanIndicates if this type comes from the currently processed/generated schema of from an external schema.voidprotected final voidsetOuterType(ProtoMessageTypeMetadata outerType) protected void
-
Field Details
-
name
-
javaClass
The marshalled Java class. -
outerType
-
-
Constructor Details
-
ProtoTypeMetadata
-
-
Method Details
-
validateName
protected void validateName() -
getName
-
getFullName
-
getDocumentation
-
getProtoDocs
-
getProtoTypeId
-
getJavaClass
-
getJavaClassName
-
getSubClassNames
-
getAnnotatedClass
At this level we pretend the Java class and the annotated class are one and the same, but subclasses may decide otherwise. -
getAnnotatedClassName
-
isAdapter
public boolean isAdapter() -
isImported
public boolean isImported()Indicates if this type comes from the currently processed/generated schema of from an external schema. -
getFileName
The schema file where this type comes from. Must be non-null for all imported types, can be null for others. -
isEnum
public abstract boolean isEnum() -
getEnumMemberByName
This is only for enums. -
getEnumMemberByNumber
-
getOuterType
-
setOuterType
-
generateProto
- Specified by:
generateProtoin interfaceHasProtoSchema
-
scanMemberAnnotations
public void scanMemberAnnotations() -
appendDocumentation
-