Class PContainer<Container>
- java.lang.Object
-
- net.morimekta.providence.descriptor.PContainer<Container>
-
- Type Parameters:
Container
- The container type.
- All Implemented Interfaces:
PDescriptor
public abstract class PContainer<Container> extends java.lang.Object implements PDescriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PContainer.Type
Enum containing the values of thecontainer = "..."
-
Constructor Summary
Constructors Modifier Constructor Description protected
PContainer(PDescriptorProvider provider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProgramName()
The package name is derived form the .thrift file name that is parsed or if read from serialized format is explicit.PDescriptor
itemDescriptor()
java.lang.String
toString()
static PContainer.Type
typeForName(java.lang.String id)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.descriptor.PDescriptor
getDefaultValue, getName, getQualifiedName, getQualifiedName, getType
-
-
-
-
Constructor Detail
-
PContainer
protected PContainer(PDescriptorProvider provider)
-
-
Method Detail
-
typeForName
public static PContainer.Type typeForName(java.lang.String id)
-
itemDescriptor
public PDescriptor itemDescriptor()
-
getProgramName
public java.lang.String getProgramName()
Description copied from interface:PDescriptor
The package name is derived form the .thrift file name that is parsed or if read from serialized format is explicit. Note that there may be package name conflicts globally.- Specified by:
getProgramName
in interfacePDescriptor
- Returns:
- The program name of the type. If empty the type is not in any named program, e.g. primitives.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-