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 NameAttributes
Base schema type name for xsi:type.private TemplateElement
Base template extended by this one.private boolean
Default template for type flag.private String
Template label.private NameAttributes
Schema type name for xsi:type.Fields inherited from class org.jibx.binding.model.TemplateElementBase
m_topChildren, s_allowedAttributes
Fields 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.boolean
Check if default template for type.void
prevalidate
(ValidationContext vctx) Prevalidate attributes of element in isolation.void
setBaseName
(String name) Set base type name.void
setBasePrefix
(String prefix) Set base type namespace prefix.void
setBaseUri
(String uri) Set base type namespace URI.void
setDefaultTemplate
(boolean dflt) Set default template for type flag.void
Set template label.void
setTypeName
(String name) Set type name.void
setTypePrefix
(String prefix) Set type namespace prefix.void
setTypeUri
(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, validate
Methods 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, verifyConstruction
Methods inherited from class org.jibx.binding.model.NestingElementBase
addChild, childIterator, children, getDefaultStyle, getDefinitions, getStyle, getStyleName, setDefinitions, setStyleName
Methods 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:
getLabel
in classContainerElementBase
- Returns:
- template label (
null
if none)
-
setLabel
Set template label.- Overrides:
setLabel
in classContainerElementBase
- Parameters:
label
- template label (null
if none)
-
isDefaultTemplate
public boolean isDefaultTemplate()Check if default template for type.- Specified by:
isDefaultTemplate
in classTemplateElementBase
- Returns:
true
if default for type,false
if not
-
setDefaultTemplate
public void setDefaultTemplate(boolean dflt) Set default template for type flag.- Parameters:
dflt
-true
if default for type,false
if 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 (
null
if not set)
-
setTypeUri
Set type namespace URI.- Parameters:
uri
- type namespace URI (null
if not set)
-
getTypePrefix
Get namespace prefix specified for type.- Returns:
- type namespace prefix (
null
if not set)
-
setTypePrefix
Set type namespace prefix.- Parameters:
prefix
- namespace prefix (null
if 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 (
null
if not set)
-
setBaseUri
Set base type namespace URI.- Parameters:
uri
- base type namespace URI (null
if if not set)
-
getBasePrefix
Get namespace URI specified for base type.- Returns:
- base type namespace prefix (
null
if not set)
-
setBasePrefix
Set base type namespace prefix.- Parameters:
prefix
- base type namespace prefix (null
if 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:
prevalidate
in classTemplateElementBase
- Parameters:
vctx
- validation context
-