ComponentExtension
, SchemaExtension
public abstract class BaseExtension
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
ARITY_OPTIONAL_COLLECTION |
|
static int |
ARITY_OPTIONAL_SINGLETON |
|
static int |
ARITY_REQUIRED_COLLECTION |
|
static int |
ARITY_REQUIRED_SINGLETON |
|
private OpenAttrBase |
m_component |
Annotated schema definition component.
|
private TypeReplacer |
m_typeReplacer |
Type replacement implementation (
null if no replacements at this level). |
private static Logger |
s_logger |
Logger for class.
|
Constructor | Description |
---|---|
BaseExtension(OpenAttrBase comp) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
OpenAttrBase |
getComponent() |
Get schema component.
|
QName |
getReplacementType(QName qname) |
Get the replacement type to be substituted for a supplied type.
|
void |
setTypeReplacer(TypeReplacer replacer) |
Set type replacer.
|
private static final Logger s_logger
public static final int ARITY_OPTIONAL_SINGLETON
public static final int ARITY_REQUIRED_SINGLETON
public static final int ARITY_OPTIONAL_COLLECTION
public static final int ARITY_REQUIRED_COLLECTION
private final OpenAttrBase m_component
private TypeReplacer m_typeReplacer
null
if no replacements at this level).public BaseExtension(OpenAttrBase comp)
comp
- public OpenAttrBase getComponent()
public void setTypeReplacer(TypeReplacer replacer)
replacer
- public QName getReplacementType(QName qname)
qname
- original typenull
if deletion; original type, if no substitution defined)