|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.schema.elements.SchemaBase
org.jibx.schema.elements.OpenAttrBase
org.jibx.schema.elements.AnnotatedBase
public abstract class AnnotatedBase
Base class for all element structures in schema definition which support annotations. The 'id' attribute handling is also implemented in this class, since it goes together with the annotation support in the schema for schema. Finally, this class maintains the parent element relationship.
| Field Summary | |
|---|---|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names |
| Fields inherited from interface org.jibx.schema.IComponent |
|---|
SCHEMA_NAMESPACE |
| Constructor Summary | |
|---|---|
protected |
AnnotatedBase(int type)
Constructor. |
| Method Summary | |
|---|---|
AnnotationElement |
getAnnotation()
Get annotation. |
String |
getId()
Get "id" attribute value. |
void |
prevalidate(ValidationContext vctx)
Prevalidate component information. |
void |
setAnnotation(AnnotationElement ann)
Set annotation. |
void |
setId(String id)
Set "id" value for element. |
| Methods inherited from class org.jibx.schema.elements.OpenAttrBase |
|---|
addExtraAttribute, clearExtraAttributes, compactChildren, detachChild, getChild, getChildCount, getChildIterator, getChildrenWritable, getExtraAttributes, preget, replaceChild, validateAttributes |
| Methods inherited from class org.jibx.schema.elements.SchemaBase |
|---|
addNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, preset, readNamespaces, setExtension, setParent, type, validate, validateAttributes, writeNamespaces |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StringArray s_allowedAttributes
| Constructor Detail |
|---|
protected AnnotatedBase(int type)
type - element type| Method Detail |
|---|
public final AnnotationElement getAnnotation()
null if none)public final void setAnnotation(AnnotationElement ann)
ann - annotation element (null if none)public String getId()
public void setId(String id)
id - id attribute valuepublic void prevalidate(ValidationContext vctx)
SchemaBase
prevalidate in interface IComponentprevalidate in class SchemaBasevctx - validation context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||