Class FileNamespace
- java.lang.Object
-
- org.infinispan.protostream.descriptors.namespace.FileNamespace
-
- All Implemented Interfaces:
Namespace
public final class FileNamespace extends Object
The types defined in a file or in the files it imports (publicly or privately).- Since:
- 3.1
- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description FileNamespace(FileDescriptor fileDescriptor, Collection<FileDescriptor> publicDependencies, Collection<FileDescriptor> privateDependencies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericDescriptor
get(String name)
Looks up the descriptor by name.Namespace
getExportedNamespace()
The types defined in this file or defined in publicly imported files.LocalNamespace
getLocalNamespace()
Types defined in this file.protected Namespace[]
getNamespaces()
void
put(String name, GenericDescriptor d)
-
-
-
Constructor Detail
-
FileNamespace
public FileNamespace(FileDescriptor fileDescriptor, Collection<FileDescriptor> publicDependencies, Collection<FileDescriptor> privateDependencies)
-
-
Method Detail
-
put
public void put(String name, GenericDescriptor d)
-
getLocalNamespace
public LocalNamespace getLocalNamespace()
Types defined in this file.
-
getExportedNamespace
public Namespace getExportedNamespace()
The types defined in this file or defined in publicly imported files.
-
getNamespaces
protected Namespace[] getNamespaces()
-
get
public GenericDescriptor get(String name)
Description copied from interface:Namespace
Looks up the descriptor by name.
-
-