|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.model.ElementBase
public abstract class ElementBase
Base class for all element structures in binding definition model. This just provides the linkages for the binding definition tree structure and related validation hooks.
| Field Summary | |
|---|---|
static int |
BINDING_ELEMENT
|
static int |
COLLECTION_ELEMENT
|
static String[] |
ELEMENT_NAMES
|
static int |
FORMAT_ELEMENT
|
static int |
INCLUDE_ELEMENT
|
static int |
INPUT_ELEMENT
|
static int |
MAPPING_ELEMENT
|
static int |
NAMESPACE_ELEMENT
|
static int |
OUTPUT_ELEMENT
|
static int |
SPLIT_ELEMENT
|
static int |
STRUCTURE_ELEMENT
|
static int |
TEMPLATE_ELEMENT
|
static int |
VALUE_ELEMENT
|
| Constructor Summary | |
|---|---|
protected |
ElementBase(int type)
Constructor. |
| Method Summary | |
|---|---|
String |
getComment()
Get element comment. |
String |
name()
Get element name. |
void |
prevalidate(ValidationContext vctx)
Prevalidate element information. |
void |
setComment(String text)
Set element comment. |
String |
toString()
Simple text representation of binding definition element. |
int |
type()
Get element type. |
void |
validate(ValidationContext vctx)
Validate element information. |
protected void |
validateAttributes(IUnmarshallingContext ictx,
StringArray attrs)
Validate attributes of element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BINDING_ELEMENT
public static final int COLLECTION_ELEMENT
public static final int FORMAT_ELEMENT
public static final int MAPPING_ELEMENT
public static final int NAMESPACE_ELEMENT
public static final int STRUCTURE_ELEMENT
public static final int TEMPLATE_ELEMENT
public static final int VALUE_ELEMENT
public static final int INCLUDE_ELEMENT
public static final int SPLIT_ELEMENT
public static final int INPUT_ELEMENT
public static final int OUTPUT_ELEMENT
public static final String[] ELEMENT_NAMES
| Constructor Detail |
|---|
protected ElementBase(int type)
type - element type code| Method Detail |
|---|
public final int type()
public final String name()
public final String getComment()
public final void setComment(String text)
text - comment for this element
protected void validateAttributes(IUnmarshallingContext ictx,
StringArray attrs)
ictx - unmarshalling contextattrs - attributes arraypublic void prevalidate(ValidationContext vctx)
vctx - validation contextpublic void validate(ValidationContext vctx)
prevalidate(org.jibx.binding.model.ValidationContext) method will always be called for every
element in the binding definition before this method is called for any
element. This empty base class implementation should be overridden by
each subclass that requires validation handling.
vctx - validation contextpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||