public class ResourceSchema
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceSchema.Builder
A builder for
ResourceSchema. |
| Modifier and Type | Method and Description |
|---|---|
static ResourceSchema.Builder |
builderForType(java.lang.reflect.Type type)
Constructs a new builder for
ResourceSchemas. |
static ResourceSchema.Builder |
builderWithSchema(ResourceSchema schema)
Constructs a new builder populated with an existing
ResourceSchema. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the custom name of the resource as it should appear in the schema.
|
java.util.Map<java.lang.String,ResourcePropertySchema> |
getProperties()
Returns map of property name to property schema.
|
java.lang.reflect.Type |
getType()
Gets the type the current schema represents.
|
int |
hashCode() |
java.lang.String |
toString() |
@Nullable public java.lang.String getName()
public java.lang.reflect.Type getType()
public java.util.Map<java.lang.String,ResourcePropertySchema> getProperties()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static ResourceSchema.Builder builderForType(java.lang.reflect.Type type)
ResourceSchemas.type - the resource typepublic static ResourceSchema.Builder builderWithSchema(ResourceSchema schema)
ResourceSchema.schema - a resource schema