|
||||||
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 | |
---|---|
private AnnotationElement |
m_annotation
Annotation for this element ( null if none). |
private java.lang.String |
m_id
"id" attribute value. |
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. |
java.lang.String |
getId()
Get "id" attribute value. |
void |
prevalidate(ValidationContext vctx)
Prevalidate component information. |
void |
setAnnotation(AnnotationElement ann)
Set annotation. |
void |
setId(java.lang.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
private AnnotationElement m_annotation
null
if none).
private java.lang.String m_id
Constructor Detail |
---|
protected AnnotatedBase(int type)
type
- element typeMethod Detail |
---|
public final AnnotationElement getAnnotation()
null
if none)public final void setAnnotation(AnnotationElement ann)
ann
- annotation element (null
if none)public java.lang.String getId()
public void setId(java.lang.String id)
id
- id attribute valuepublic void prevalidate(ValidationContext vctx)
SchemaBase
prevalidate
in interface IComponent
prevalidate
in class SchemaBase
vctx
- validation context
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |