Package org.jibx.schema.codegen.custom
Class CustomBase
- java.lang.Object
-
- org.jibx.schema.codegen.custom.CustomBase
-
- Direct Known Subclasses:
GeneratorCustom
,NestingCustomBase
public class CustomBase extends java.lang.Object
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 Modifier and Type Field Description private NestingCustomBase
m_parent
Parent element (null
if none).
-
Constructor Summary
Constructors Constructor Description CustomBase(NestingCustomBase parent)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.Object
getContainingObject(IUnmarshallingContext ictx)
Gets the parent element link from the unmarshalling stack.NestingCustomBase
getParent()
Get container.SchemaRootBase
getSchemaRoot()
Get schema customizations parent.protected void
setParent(NestingCustomBase parent)
Set container.protected void
validateAttributes(IUnmarshallingContext ictx, StringArray attrs)
Validate attributes of element.
-
-
-
Field Detail
-
m_parent
private NestingCustomBase m_parent
Parent element (null
if none).
-
-
Constructor Detail
-
CustomBase
public CustomBase(NestingCustomBase parent)
Constructor.- Parameters:
parent
-
-
-
Method Detail
-
getParent
public NestingCustomBase getParent()
Get container.- Returns:
- container
-
setParent
protected void setParent(NestingCustomBase parent)
Set container.- Parameters:
parent
-
-
getSchemaRoot
public SchemaRootBase getSchemaRoot()
Get schema customizations parent.- Returns:
- schema customization
-
validateAttributes
protected void validateAttributes(IUnmarshallingContext ictx, StringArray attrs)
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
protected static java.lang.Object getContainingObject(IUnmarshallingContext ictx)
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
-
-