public class SchemasetCustom extends SchemaRootBase
SchemaRootBase.ClassDecoratorUnmarshaller, SchemaRootBase.ExtensionUnmarshaller, SchemaRootBase.NameConverterUnmarshaller, SchemaRootBase.SchemaTypeUnmarshaller| Modifier and Type | Field and Description |
|---|---|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
ENUM_JAVA5, ENUM_SIMPLE, REPEAT_ARRAY, REPEAT_LIST, REPEAT_TYPED, s_enumValues, s_repeatValuesANY_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.
|
SchemaCustom |
forceCustomization(String name,
String id,
SchemaElement schema,
ValidationContext vctx)
Get schema customization information, creating it if it doesn't already exist.
|
SchemaCustom |
getCustomization(String id)
Get existing schema customization information.
|
String[] |
getNames()
Get schema name match patterns.
|
boolean |
isInSet(String name,
SchemaElement schema)
Check if a schema is included in this set.
|
static SchemasetCustom |
loadCustomizations(String path,
ProblemHandler handler)
Load a customizations file.
|
boolean |
validate(ValidationContext vctx)
Validate and finalize customization information.
|
getBindingFileName, getEnumerationTypeText, getEnumType, getLineWidth, getPackage, getPrefix, getRepeatedTypeText, getRepeatType, getRootParent, isBindingPerSchema, isDeleteAnnotations, isGenerateAll, isInlineGroups, isJavaDocDocumentation, isNullCollectionAllowed, isPreferInline, isSchemaFragmentDocumentation, isStructureOptional, isUseInner, setEnumType, setPackage, setRepeatTypegetActiveFacetsMask, getAnyHandling, getAnyType, getChildren, getChoiceHandling, getChoiceType, getReplacement, getSubstitutions, getUnionHandling, getUnionType, isAttributeInlined, isChoiceExposed, isUnionExposed, setAnyType, setChoiceType, setEnforcedFacets, setIgnoredFacets, setReplacement, setSubstitutions, setUnionTypegetContainingObject, getParent, getSchemaRoot, setParent, validateAttributespublic static final StringArray s_allowedAttributes
public SchemasetCustom(SchemasetCustom parent)
parent - public SchemasetCustom(SchemaCustom child)
child - public String[] getNames()
null if not set)public boolean isInSet(String name, SchemaElement schema)
name - schema file nameschema - actual schematrue if in set, false if notpublic SchemaCustom getCustomization(String id)
id - schema identifierpublic SchemaCustom forceCustomization(String name, String id, SchemaElement schema, ValidationContext vctx)
name - schema file nameid - unique identifier for schemaschema - actual schemavctx - validation context for reporting errorspublic void checkSchemas(ValidationContext vctx)
vctx - public boolean validate(ValidationContext vctx)
validate in class NestingCustomBasevctx - validation contexttrue if valid, false if notpublic static SchemasetCustom loadCustomizations(String path, ProblemHandler handler) throws JiBXException, IOException
path - customization file path (null if none)handler - validation problem handlernull if errorsJiBXExceptionIOExceptionCopyright © 2005-2014 jibx.org. All Rights Reserved.