public class SchemasetCustom extends SchemaRootBase
SchemaRootBase.ClassDecoratorUnmarshaller, SchemaRootBase.ExtensionUnmarshaller, SchemaRootBase.NameConverterUnmarshaller, SchemaRootBase.SchemaTypeUnmarshaller
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
m_names
Schema name patterns.
|
private java.lang.String[] |
m_namespaces
Schema namespace patterns.
|
private java.util.Map |
m_schemaMap
Map from schema identifier to customization.
|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
private static Logger |
s_logger
Logger for class.
|
ENUM_JAVA5, ENUM_SIMPLE, REPEAT_ARRAY, REPEAT_LIST, REPEAT_TYPED, s_enumValues, s_repeatValues
ANY_DISCARD, ANY_DOM, ANY_MAPPED, s_anyValues, s_selectionValues, SELECTION_CHECKEDBOTH, SELECTION_CHECKEDSET, SELECTION_OVERRIDEBOTH, SELECTION_OVERRIDESET, SELECTION_UNCHECKED
Constructor and Description |
---|
SchemasetCustom(SchemaCustom child)
Constructor with single schema customization as content.
|
SchemasetCustom(SchemasetCustom parent)
Normal constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkSchemas(ValidationContext vctx)
Recursively check that each schema customization has been matched to a schema.
|
private static SchemasetCustom |
factory(IUnmarshallingContext ictx)
Factory used during unmarshalling.
|
SchemaCustom |
forceCustomization(java.lang.String name,
java.lang.String id,
SchemaElement schema,
ValidationContext vctx)
Get schema customization information, creating it if it doesn't already exist.
|
SchemaCustom |
getCustomization(java.lang.String id)
Get existing schema customization information.
|
java.lang.String[] |
getNames()
Get schema name match patterns.
|
boolean |
isInSet(java.lang.String name,
SchemaElement schema)
Check if a schema is included in this set.
|
static SchemasetCustom |
loadCustomizations(java.lang.String path,
ProblemHandler handler)
Load a customizations file.
|
private void |
preSet(IUnmarshallingContext uctx)
Make sure all attributes are defined.
|
boolean |
validate(ValidationContext vctx)
Validate and finalize customization information.
|
getBindingFileName, getClassDecorators, getEnumerationTypeText, getEnumType, getLineWidth, getNameConverter, getPackage, getPrefix, getRepeatedTypeText, getRepeatType, getRootParent, getSchemaTypes, isBindingPerSchema, isDeleteAnnotations, isGenerateAll, isInlineGroups, isJavaDocDocumentation, isNullCollectionAllowed, isPreferInline, isSchemaFragmentDocumentation, isStructureOptional, isUseInner, setEnumType, setPackage, setRepeatType
getActiveFacetsMask, getAnyHandling, getAnyType, getChildren, getChoiceHandling, getChoiceType, getReplacement, getSubstitutions, getUnionHandling, getUnionType, isAttributeInlined, isChoiceExposed, isUnionExposed, setAnyType, setChoiceType, setEnforcedFacets, setIgnoredFacets, setReplacement, setSubstitutions, setUnionType
getContainingObject, getParent, getSchemaRoot, setParent, validateAttributes
private static final Logger s_logger
public static final StringArray s_allowedAttributes
private java.lang.String[] m_names
private java.lang.String[] m_namespaces
private final java.util.Map m_schemaMap
public SchemasetCustom(SchemasetCustom parent)
parent
- public SchemasetCustom(SchemaCustom child)
child
- public java.lang.String[] getNames()
null
if not set)private void preSet(IUnmarshallingContext uctx)
uctx
- unmarshalling contextpublic boolean isInSet(java.lang.String name, SchemaElement schema)
name
- schema file nameschema
- actual schematrue
if in set, false
if notpublic SchemaCustom getCustomization(java.lang.String id)
id
- schema identifierpublic SchemaCustom forceCustomization(java.lang.String name, java.lang.String id, SchemaElement schema, ValidationContext vctx)
name
- schema file nameid
- unique identifier for schemaschema
- actual schemavctx
- validation context for reporting errorsprivate static SchemasetCustom factory(IUnmarshallingContext ictx)
ictx
- public void checkSchemas(ValidationContext vctx)
vctx
- public boolean validate(ValidationContext vctx)
validate
in class NestingCustomBase
vctx
- validation contexttrue
if valid, false
if notpublic static SchemasetCustom loadCustomizations(java.lang.String path, ProblemHandler handler) throws JiBXException, java.io.IOException
path
- customization file path (null
if none)handler
- validation problem handlernull
if errorsJiBXException
java.io.IOException