|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.schwa.dr.AnnSchema
org.schwa.dr.DocSchema
public final class DocSchema
Schema class for docrep annotation Doc implementations.
| Field Summary | |
|---|---|
static Class<?>[] |
ALLOWED_FIELD_KLASSES
|
static Class<? extends Annotation>[] |
ANNOTATION_KLASSES
|
protected List<AnnSchema> |
annSchemas
|
protected List<StoreSchema> |
storeSchemas
|
| Fields inherited from class org.schwa.dr.AnnSchema |
|---|
fieldSchemas, klass, name, serial |
| Method Summary | ||
|---|---|---|
void |
addSchema(AnnSchema annSchema)
Adds an AnnSchema schema that this document class has annotation instances for. |
|
void |
addStore(StoreSchema storeSchema)
Adds a new StoreSchema to the list of fields on this document class. |
|
static
|
create(Class<T> klass)
|
|
AnnSchema |
getSchema(Class<? extends Ann> klass)
Returns the schema for the annotation on this document class whose Class matches the
provided class. |
|
List<AnnSchema> |
getSchemas()
Returns a list of schema objects for all annotation types that this document contains. |
|
StoreSchema |
getStore(String name)
Returns the schema for the stores on this annotation class whose name matches the provided name. |
|
List<StoreSchema> |
getStores()
Returns a list of schema objects for all of the stores on this annotation class. |
|
boolean |
hasStore(String name)
Returns whether or not this document has a store with the provided name. |
|
boolean |
hasStores()
Returns whether or not this document class has any stores. |
|
| Methods inherited from class org.schwa.dr.AnnSchema |
|---|
addField, create, create, getField, getField, getFields, getKlass, getName, getSerial, hasFields, setSerial |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Class<?>[] ALLOWED_FIELD_KLASSES
public static final Class<? extends Annotation>[] ANNOTATION_KLASSES
protected List<AnnSchema> annSchemas
protected List<StoreSchema> storeSchemas
| Method Detail |
|---|
public void addSchema(AnnSchema annSchema)
AnnSchema schema that this document class has annotation instances for.
public void addStore(StoreSchema storeSchema)
StoreSchema to the list of fields on this document class.
public AnnSchema getSchema(Class<? extends Ann> klass)
Class matches the
provided class. This method returns null if no annotation class matches.
public List<AnnSchema> getSchemas()
public StoreSchema getStore(String name)
public List<StoreSchema> getStores()
public boolean hasStore(String name)
getStore(java.lang.String)public boolean hasStores()
public static <T extends Doc> DocSchema create(Class<T> klass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||