Package org.jibx.schema.codegen.custom
Class CustomBase
java.lang.Object
org.jibx.schema.codegen.custom.CustomBase
- Direct Known Subclasses:
GeneratorCustom
,NestingCustomBase
Base class for all schema customizations. This defines a way to navigate up the tree of nested customizations without
making assumptions about the specific type of the containing components.
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Object
Gets the parent element link from the unmarshalling stack.Get container.Get schema customizations parent.protected void
setParent
(NestingCustomBase parent) Set container.protected void
validateAttributes
(IUnmarshallingContext ictx, StringArray attrs) Validate attributes of element.
-
Field Details
-
m_parent
Parent element (null
if none).
-
-
Constructor Details
-
CustomBase
Constructor.- Parameters:
parent
-
-
-
Method Details
-
getParent
Get container.- Returns:
- container
-
setParent
Set container.- Parameters:
parent
-
-
getSchemaRoot
Get schema customizations parent.- Returns:
- schema customization
-
validateAttributes
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:
ictx
- unmarshalling contextattrs
- attributes array
-
getContainingObject
Gets the parent element link from the unmarshalling stack. This method is for use by factories during unmarshalling.- Parameters:
ictx
- unmarshalling context- Returns:
- containing class
-