Package org.jibx.binding.model
Interface IComponent
- All Known Implementing Classes:
CollectionElement,StructureElement,StructureElementBase,ValueElement
public interface IComponent
Child component interface definition. This is the basic interface implemented
by every binding definition element that actually participates in the nested
structure of a binding (as opposed to elements such as format
elements, which are simply convenience shortcuts). It defines the hooks used
to handle structure validation of a binding definition model.
- Author:
- Dennis M. Sosnoski
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get name.getType()Get value type information.getUri()Get specified namespace URI.booleanCheck if component defines one or more attribute values of the containing element.booleanCheck if component defines one or more elements or text values as children of the containing element.booleanhasName()Check if component has a name.booleanCheck if this structure implicitly uses the containing object.booleanCheck if component is an optional item.
-
Method Details
-
isOptional
boolean isOptional()Check if component is an optional item.- Returns:
trueif optional,falseif required
-
hasAttribute
boolean hasAttribute()Check if component defines one or more attribute values of the containing element. This method is only valid after validation.- Returns:
trueif one or more attribute values defined for containing element,falseif not
-
hasContent
boolean hasContent()Check if component defines one or more elements or text values as children of the containing element. This method is only valid after validation.- Returns:
trueif one or more content values defined for containing element,falseif not
-
hasName
boolean hasName()Check if component has a name.- Returns:
trueif component has a name,falseif not
-
getName
String getName()Get name.- Returns:
- name text
-
getUri
String getUri()Get specified namespace URI.- Returns:
- namespace URI (
nullif not set)
-
getType
IClass getType()Get value type information. This call is only meaningful after prevalidation.- Returns:
- type information
-
isImplicit
boolean isImplicit()Check if this structure implicitly uses the containing object. This call is only meaningful after prevalidation.- Returns:
trueif using the containing object,falseif own object
-