public class IncludeElement extends NestingElementBase
TreeContext
, since the
components of the included binding need to be treated as though they were
direct children of the container of this element (and accessed in the
appropriate order).Modifier and Type | Field | Description |
---|---|---|
private BindingElement |
m_binding |
Object model for included binding.
|
private java.lang.String |
m_includePath |
Path to included binding definition.
|
private boolean |
m_precompiled |
Included binding precompiled flag.
|
static StringArray |
s_allowedAttributes |
Enumeration of allowed attribute names
|
BINDING_ELEMENT, COLLECTION_ELEMENT, ELEMENT_NAMES, FORMAT_ELEMENT, INCLUDE_ELEMENT, INPUT_ELEMENT, MAPPING_ELEMENT, NAMESPACE_ELEMENT, OUTPUT_ELEMENT, SPLIT_ELEMENT, STRUCTURE_ELEMENT, TEMPLATE_ELEMENT, VALUE_ELEMENT
Constructor | Description |
---|---|
IncludeElement() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
BindingElement |
getBinding() |
Get the included binding model.
|
java.lang.String |
getIncludePath() |
Get path to included binding.
|
boolean |
isPrecompiled() |
Check if precompiled binding.
|
private void |
preSet(IUnmarshallingContext uctx) |
Make sure all attributes are defined.
|
void |
prevalidate(ValidationContext vctx) |
Prevalidate element information.
|
void |
setIncludePath(java.lang.String path) |
Set path to included binding.
|
void |
setPrecompiled(boolean precomp) |
Set precompiled binding flag.
|
getComment, name, setComment, toString, type, validateAttributes
addChild, childIterator, children, getDefaultStyle, getDefinitions, getStyle, getStyleName, setDefinitions, setStyleName, validate
public static final StringArray s_allowedAttributes
private java.lang.String m_includePath
private boolean m_precompiled
private BindingElement m_binding
public void setIncludePath(java.lang.String path)
path
- public java.lang.String getIncludePath()
public BindingElement getBinding()
null
if redundant includepublic boolean isPrecompiled()
true
if precompiled, false
if notpublic void setPrecompiled(boolean precomp)
precomp
- private void preSet(IUnmarshallingContext uctx) throws JiBXException
uctx
- unmarshalling contextJiBXException
- on unmarshalling errorpublic void prevalidate(ValidationContext vctx)
ElementBase
prevalidate
in class NestingElementBase
vctx
- validation context