|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.schwa.dr.AnnSchema
public class AnnSchema
Schema class for docrep annotation Ann implementations.
| Field Summary | |
|---|---|
protected List<FieldSchema> |
fieldSchemas
|
protected Class<? extends Ann> |
klass
|
protected String |
name
|
protected String |
serial
|
| Constructor Summary | |
|---|---|
protected |
AnnSchema(Class<? extends Ann> klass,
String name,
String serial)
|
| Method Summary | |
|---|---|
void |
addField(FieldSchema fieldSchema)
Adds a new FieldSchema to the list of fields on this annotation class. |
static AnnSchema |
create(Class<? extends Ann> klass,
String name)
|
static AnnSchema |
create(Class<? extends Ann> klass,
String name,
String serial)
|
FieldSchema |
getField(int index)
Returns the schema for the index'th field on this annotation class. |
FieldSchema |
getField(String name)
Returns the schema for the field on this annotation class whose name matches the provided name. |
List<FieldSchema> |
getFields()
Returns a list of schema objects for all of the fields on this annotation class. |
Class<? extends Ann> |
getKlass()
Returns the Class object for the underlying annotation class. |
String |
getName()
Returns the name of this annotation class. |
String |
getSerial()
Returns the serial name of this annotation class. |
boolean |
hasFields()
Returns whether or not this annotation class has any fields. |
void |
setSerial(String serial)
Sets the serial name of this annotation class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Class<? extends Ann> klass
protected final String name
protected String serial
protected List<FieldSchema> fieldSchemas
| Constructor Detail |
|---|
protected AnnSchema(Class<? extends Ann> klass,
String name,
String serial)
| Method Detail |
|---|
public void addField(FieldSchema fieldSchema)
FieldSchema to the list of fields on this annotation class.
public Class<? extends Ann> getKlass()
Class object for the underlying annotation class.
public FieldSchema getField(int index)
public FieldSchema getField(String name)
public List<FieldSchema> getFields()
public String getName()
public String getSerial()
public boolean hasFields()
public void setSerial(String serial)
public static AnnSchema create(Class<? extends Ann> klass,
String name)
public static AnnSchema create(Class<? extends Ann> klass,
String name,
String serial)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||