| |
|
| java.lang.Object org.jibx.binding.model.ElementBase
All known Subclasses: org.jibx.binding.model.NamespaceElement, org.jibx.binding.model.FormatElement, org.jibx.binding.model.NestingElementBase, org.jibx.binding.model.ValueElement,
ElementBase | abstract public class ElementBase (Code) | | 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.
author: Dennis M. Sosnoski version: 1.0 |
Constructor Summary | |
protected | ElementBase(int type) Constructor. |
BINDING_ELEMENT | final public static int BINDING_ELEMENT(Code) | | |
COLLECTION_ELEMENT | final public static int COLLECTION_ELEMENT(Code) | | |
ELEMENT_NAMES | final public static String[] ELEMENT_NAMES(Code) | | |
FORMAT_ELEMENT | final public static int FORMAT_ELEMENT(Code) | | |
INCLUDE_ELEMENT | final public static int INCLUDE_ELEMENT(Code) | | |
INPUT_ELEMENT | final public static int INPUT_ELEMENT(Code) | | |
MAPPING_ELEMENT | final public static int MAPPING_ELEMENT(Code) | | |
NAMESPACE_ELEMENT | final public static int NAMESPACE_ELEMENT(Code) | | |
OUTPUT_ELEMENT | final public static int OUTPUT_ELEMENT(Code) | | |
SPLIT_ELEMENT | final public static int SPLIT_ELEMENT(Code) | | |
STRUCTURE_ELEMENT | final public static int STRUCTURE_ELEMENT(Code) | | |
TEMPLATE_ELEMENT | final public static int TEMPLATE_ELEMENT(Code) | | |
VALUE_ELEMENT | final public static int VALUE_ELEMENT(Code) | | |
ElementBase | protected ElementBase(int type)(Code) | | Constructor.
Parameters: type - element type code |
getComment | final public String getComment()(Code) | | Get element comment.
comment for this element |
name | final public String name()(Code) | | Get element name.
type code for this element |
prevalidate | public void prevalidate(ValidationContext vctx)(Code) | | Prevalidate element information. The prevalidation step is used to
check isolated aspects of an element, such as the settings for enumerated
values on the element and attributes. This empty base class
implementation should be overridden by each subclass that requires
prevalidation handling.
Parameters: vctx - validation context |
setComment | final public void setComment(String text)(Code) | | Set element comment.
Parameters: text - comment for this element |
toString | public String toString()(Code) | | Simple text representation of binding definition element. This uses the
element name, along with position information if present.
text representation |
type | final public int type()(Code) | | Get element type.
type code for this element |
validate | public void validate(ValidationContext vctx)(Code) | | Validate element information. The validation step is used for checking
the interactions between elements, such as name references to other
elements. The
ElementBase.prevalidate 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.
Parameters: vctx - validation context |
validateAttributes | protected void validateAttributes(IUnmarshallingContext ictx, StringArray attrs) throws JiBXException(Code) | | Validate attributes of element. This is designed to be called during
unmarshalling as part of the pre-set method processing when a subclass
instance is being created.
Parameters: vctx - validation context Parameters: attrs - attributes array exception: JiBXException - on unmarshalling error |
|
|
|