Class ProtoTypeMetadata
java.lang.Object
org.infinispan.protostream.annotations.impl.ProtoTypeMetadata
- All Implemented Interfaces:
HasProtoSchema
- Direct Known Subclasses:
ImportedProtoTypeMetadata
,ProtoEnumTypeMetadata
,ProtoMessageTypeMetadata
- Since:
- 3.0
- Author:
- [email protected]
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
appendDocumentation
(IndentWriter iw, String documentation) void
At this level we pretend the Java class and the annotated class are one and the same, but subclasses may decide otherwise.abstract ProtoEnumValueMetadata
getEnumMemberByName
(String name) This is only for enums.The schema file where this type comes from.getName()
final ProtoMessageTypeMetadata
boolean
abstract boolean
isEnum()
boolean
Indicates if this type comes from the currently processed/generated schema of from an external schema.void
protected final void
setOuterType
(ProtoMessageTypeMetadata outerType) protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.protostream.annotations.impl.HasProtoSchema
toProtoSchema
-
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
-
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. -
getOuterType
-
setOuterType
-
generateProto
- Specified by:
generateProto
in interfaceHasProtoSchema
-
scanMemberAnnotations
public void scanMemberAnnotations() -
appendDocumentation
-