Package org.jibx.binding.model
Class TemplateElement
java.lang.Object
org.jibx.binding.model.ElementBase
org.jibx.binding.model.NestingElementBase
org.jibx.binding.model.ContainerElementBase
org.jibx.binding.model.TemplateElementBase
org.jibx.binding.model.TemplateElement
Model component for template element of binding definition.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NameAttributesBase schema type name for xsi:type.private TemplateElementBase template extended by this one.private booleanDefault template for type flag.private StringTemplate label.private NameAttributesSchema type name for xsi:type.Fields inherited from class org.jibx.binding.model.TemplateElementBase
m_topChildren, s_allowedAttributesFields inherited from class org.jibx.binding.model.ElementBase
BINDING_ELEMENT, COLLECTION_ELEMENT, ELEMENT_NAMES, FORMAT_ELEMENT, INCLUDE_ELEMENT, INPUT_ELEMENT, MAPPING_ELEMENT, NAMESPACE_ELEMENT, OUTPUT_ELEMENT, SPLIT_ELEMENT, STRUCTURE_ELEMENT, TEMPLATE_ELEMENT, VALUE_ELEMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet base type name.Get effective namespace information for base type.Get namespace URI specified for base type.Get namespace URI specified for base type.Get template extended by this one.getLabel()Get template label.Get type name.Get effective namespace information for type.Get namespace prefix specified for type.Get namespace URI specified for type.booleanCheck if default template for type.voidprevalidate(ValidationContext vctx) Prevalidate attributes of element in isolation.voidsetBaseName(String name) Set base type name.voidsetBasePrefix(String prefix) Set base type namespace prefix.voidsetBaseUri(String uri) Set base type namespace URI.voidsetDefaultTemplate(boolean dflt) Set default template for type flag.voidSet template label.voidsetTypeName(String name) Set type name.voidsetTypePrefix(String prefix) Set type namespace prefix.voidsetTypeUri(String uri) Set type namespace URI.Methods inherited from class org.jibx.binding.model.TemplateElementBase
addExtensionType, addTopChild, getClassName, getExtensionTypes, getHandledClass, getObjectType, getType, hasObject, isImplicit, isOptional, setClassName, topChildIterator, topChildren, validateMethods inherited from class org.jibx.binding.model.ContainerElementBase
checkCompatibleChildren, classifyComponents, getAttributeComponents, getChildObjectType, getContentComponents, getCreateClass, getCreateType, getFactory, getFactoryName, getId, getMarshaller, getMarshallerName, getPostset, getPostsetName, getPreget, getPregetName, getPreset, getPresetName, getUnmarshaller, getUnmarshallerName, getUsing, isAllowRepeats, isChoice, isClassified, isFlexible, isNillable, isOrdered, setAllowRepeats, setChoice, setComponents, setCreateType, setFactoryName, setFlexible, setIdChild, setMarshallerName, setNillable, setOrdered, setPostsetName, setPregetName, setPresetName, setUnmarshallerName, setUsing, verifyConstructionMethods inherited from class org.jibx.binding.model.NestingElementBase
addChild, childIterator, children, getDefaultStyle, getDefinitions, getStyle, getStyleName, setDefinitions, setStyleNameMethods inherited from class org.jibx.binding.model.ElementBase
getComment, name, setComment, toString, type, validateAttributes
-
Field Details
-
m_label
Template label. -
m_isDefault
private boolean m_isDefaultDefault template for type flag. -
m_typeNameAttrs
Schema type name for xsi:type. -
m_baseNameAttrs
Base schema type name for xsi:type. -
m_extendsMapping
Base template extended by this one.
-
-
Constructor Details
-
TemplateElement
public TemplateElement()Default constructor.
-
-
Method Details
-
getLabel
Get template label.- Overrides:
getLabelin classContainerElementBase- Returns:
- template label (
nullif none)
-
setLabel
Set template label.- Overrides:
setLabelin classContainerElementBase- Parameters:
label- template label (nullif none)
-
isDefaultTemplate
public boolean isDefaultTemplate()Check if default template for type.- Specified by:
isDefaultTemplatein classTemplateElementBase- Returns:
trueif default for type,falseif not
-
setDefaultTemplate
public void setDefaultTemplate(boolean dflt) Set default template for type flag.- Parameters:
dflt-trueif default for type,falseif not
-
getTypeName
Get type name.- Returns:
- type name text
-
setTypeName
Set type name.- Parameters:
name- text for type name
-
getTypeUri
Get namespace URI specified for type.- Returns:
- type namespace URI (
nullif not set)
-
setTypeUri
Set type namespace URI.- Parameters:
uri- type namespace URI (nullif not set)
-
getTypePrefix
Get namespace prefix specified for type.- Returns:
- type namespace prefix (
nullif not set)
-
setTypePrefix
Set type namespace prefix.- Parameters:
prefix- namespace prefix (nullif not set)
-
getTypeNamespace
Get effective namespace information for type. This call is only meaningful after validation.- Returns:
- effective namespace information
-
getExtendsMapping
Get template extended by this one.- Returns:
- template extended by this one
-
getBaseName
Get base type name.- Returns:
- base type name text
-
setBaseName
Set base type name.- Parameters:
name- text for base type name
-
getBaseUri
Get namespace URI specified for base type.- Returns:
- base type namespace URI (
nullif not set)
-
setBaseUri
Set base type namespace URI.- Parameters:
uri- base type namespace URI (nullif if not set)
-
getBasePrefix
Get namespace URI specified for base type.- Returns:
- base type namespace prefix (
nullif not set)
-
setBasePrefix
Set base type namespace prefix.- Parameters:
prefix- base type namespace prefix (nullif not set)
-
getBaseNamespace
Get effective namespace information for base type. This call is only meaningful after validation.- Returns:
- effective namespace information
-
prevalidate
Prevalidate attributes of element in isolation.- Overrides:
prevalidatein classTemplateElementBase- Parameters:
vctx- validation context
-