Java Doc for ContainerElementBase.java in  » XML » jibx-1.1.5 » org » jibx » binding » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » jibx 1.1.5 » org.jibx.binding.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jibx.binding.model.ElementBase
      org.jibx.binding.model.NestingElementBase
         org.jibx.binding.model.ContainerElementBase

All known Subclasses:   org.jibx.binding.model.StructureElementBase,  org.jibx.binding.model.TemplateElementBase,
ContainerElementBase
abstract public class ContainerElementBase extends NestingElementBase (Code)
Model component for elements that can contain detailed binding information in the form of nested child components. Elements of this type include mapping, template, structure, and collection elements.
author:
   Dennis M. Sosnoski


Field Summary
final public static  StringArrays_allowedAttributes
    

Constructor Summary
protected  ContainerElementBase(int type)
     Constructor.

Method Summary
protected  voidcheckCompatibleChildren(ValidationContext vctx, IClass type, ArrayList children)
     Check that child components are of types compatible with the container object type.
protected  voidclassifyComponents(ValidationContext vctx)
     Classify child components as contributing attributes, content, or both. This method is needed to handle on-demand classification during validation.
public  ArrayListgetAttributeComponents()
     Get list of child components contributing attribute items to this container element.
public  IClassgetChildObjectType()
     Get class passed to child components.
public  ArrayListgetContentComponents()
     Get list of child components contributing content items to this container element.
public  IClassgetCreateClass()
     Get new instance creation class information.
public  StringgetCreateType()
     Get type to be used for creating new instance.
public  IClassItemgetFactory()
     Get factory method information.
public  StringgetFactoryName()
     Get factory method name.
public  IComponentgetId()
     Get ID property child.
public  StringgetLabel()
     Get label for this definition.
public  IClassgetMarshaller()
     Get marshaller class information.
public  StringgetMarshallerName()
     Get marshaller class name.
abstract public  IClassgetObjectType()
     Get class linked to binding element.
public  IClassItemgetPostset()
     Get post-set method information.
public  StringgetPostsetName()
     Get post-set method name.
public  IClassItemgetPreget()
     Get pre-get method information.
public  StringgetPregetName()
     Get pre-get method name.
public  IClassItemgetPreset()
     Get pre-set method information.
public  StringgetPresetName()
     Get pre-set method name.
public  IClassgetUnmarshaller()
     Get unmarshaller class information.
public  StringgetUnmarshallerName()
     Get unmarshaller class name.
public  StringgetUsing()
     Get label for definition to be used.
abstract public  booleanhasObject()
     Check if this container defines a context object.
public  booleanisAllowRepeats()
     Check if repeated child elements are allowed.
public  booleanisChoice()
     Check if child components are a choice.
protected  booleanisClassified()
     Check for child components classified.
public  booleanisFlexible()
     Get flexible flag.
public  booleanisNillable()
     Check if nillable object.
public  booleanisOrdered()
     Check if child components are ordered.
public  voidprevalidate(ValidationContext vctx)
    
public  voidsetAllowRepeats(boolean ignore)
     Set repeated child elements allowed flag.
public  voidsetChoice(boolean choice)
     Set child components choice flag.
protected  voidsetComponents(ArrayList attribs, ArrayList contents)
     Set child attribute and content components directly.
public  voidsetCreateType(String name)
     Set new instance type class name.
public  voidsetFactoryName(String name)
     Set factory method name.
public  voidsetFlexible(boolean flexible)
     Set flexible flag.
final public  voidsetIdChild(IComponent child, ValidationContext vctx)
     Set ID property child.
public  voidsetLabel(String label)
     Set label for this definition.
public  voidsetMarshallerName(String name)
     Set marshaller class name.
public  voidsetNillable(boolean nillable)
     Set nillable flag.
public  voidsetOrdered(boolean ordered)
     Set child components ordered flag.
public  voidsetPostsetName(String name)
     Set post-set method name.
public  voidsetPreget(String name)
     Set pre-get method name.
public  voidsetPresetName(String name)
     Set pre-set method name.
public  voidsetUnmarshallerName(String name)
     Set unmarshaller class name.
public  voidsetUsing(String label)
     Set label for definition to be used.
public  voidvalidate(ValidationContext vctx)
    
protected  voidverifyConstruction(ValidationContext vctx, IClass type)
     Check that there's a way to construct an instance of an object class for input bindings.

Field Detail
s_allowedAttributes
final public static StringArray s_allowedAttributes(Code)
Enumeration of allowed attribute names




Constructor Detail
ContainerElementBase
protected ContainerElementBase(int type)(Code)
Constructor.
Parameters:
  type - element type code




Method Detail
checkCompatibleChildren
protected void checkCompatibleChildren(ValidationContext vctx, IClass type, ArrayList children)(Code)
Check that child components are of types compatible with the container object type. This method may call itself recursively to process the children of child components which do not themselves set a type. It's not used directly, but is here for use by subclasses.
Parameters:
  vctx - validation context
Parameters:
  type - structure object type
Parameters:
  children - list of child components to be checked



classifyComponents
protected void classifyComponents(ValidationContext vctx)(Code)
Classify child components as contributing attributes, content, or both. This method is needed to handle on-demand classification during validation. When a child component is another instance of this class, the method calls itself on the child component prior to checking the child component's contribution.
Parameters:
  vctx -



getAttributeComponents
public ArrayList getAttributeComponents()(Code)
Get list of child components contributing attribute items to this container element. This call is only meaningful after validation. list of child binding components defining attribute items



getChildObjectType
public IClass getChildObjectType()(Code)
Get class passed to child components. This call is only meaningful after validation. information for class linked by binding



getContentComponents
public ArrayList getContentComponents()(Code)
Get list of child components contributing content items to this container element. This call is only meaningful after validation. list of child binding components defining content items



getCreateClass
public IClass getCreateClass()(Code)
Get new instance creation class information. This method is only usable after a call to ContainerElementBase.validate . class information for type to be created (or null ifnone)



getCreateType
public String getCreateType()(Code)
Get type to be used for creating new instance. class name for type to be created (or null if none)



getFactory
public IClassItem getFactory()(Code)
Get factory method information. This call is only meaningful after validation. factory method information (or null if none)



getFactoryName
public String getFactoryName()(Code)
Get factory method name. fully-qualified factory class and method name (ornull if none)



getId
public IComponent getId()(Code)
Get ID property child. ID child



getLabel
public String getLabel()(Code)
Get label for this definition. label for this definition



getMarshaller
public IClass getMarshaller()(Code)
Get marshaller class information. This call is only meaningful after validation. class information for marshaller (or null if none)



getMarshallerName
public String getMarshallerName()(Code)
Get marshaller class name. marshaller class name (or null if none)



getObjectType
abstract public IClass getObjectType()(Code)
Get class linked to binding element. This call is only meaningful after validation. information for class linked by binding



getPostset
public IClassItem getPostset()(Code)
Get post-set method information. This call is only meaningful after validation. post-set method information (or null if none)



getPostsetName
public String getPostsetName()(Code)
Get post-set method name. post-set method name (or null if none)



getPreget
public IClassItem getPreget()(Code)
Get pre-get method information. This call is only meaningful after validation. pre-get method information (or null if none)



getPregetName
public String getPregetName()(Code)
Get pre-get method name. pre-get method name (or null if none)



getPreset
public IClassItem getPreset()(Code)
Get pre-set method information. This call is only meaningful after validation. pre-set method information (or null if none)



getPresetName
public String getPresetName()(Code)
Get pre-set method name. pre-set method name (or null if none)



getUnmarshaller
public IClass getUnmarshaller()(Code)
Get unmarshaller class information. This call is only meaningful after validation. class information for unmarshaller (or null if none)



getUnmarshallerName
public String getUnmarshallerName()(Code)
Get unmarshaller class name. unmarshaller class name (or null if none)



getUsing
public String getUsing()(Code)
Get label for definition to be used. label for definition to be used



hasObject
abstract public boolean hasObject()(Code)
Check if this container defines a context object. true if defines context object,false if not



isAllowRepeats
public boolean isAllowRepeats()(Code)
Check if repeated child elements are allowed. true if repeats allowed, false if not



isChoice
public boolean isChoice()(Code)
Check if child components are a choice. true if choice, false if not



isClassified
protected boolean isClassified()(Code)
Check for child components classified. This is a convenience method for subclasses to check if classification has already been done. true if classified, false if not



isFlexible
public boolean isFlexible()(Code)
Get flexible flag. flexible flag



isNillable
public boolean isNillable()(Code)
Check if nillable object. nillable flag



isOrdered
public boolean isOrdered()(Code)
Check if child components are ordered. true if ordered, false if not



prevalidate
public void prevalidate(ValidationContext vctx)(Code)



setAllowRepeats
public void setAllowRepeats(boolean ignore)(Code)
Set repeated child elements allowed flag.
Parameters:
  ignore - true if repeated child elements to be allowed,false if not



setChoice
public void setChoice(boolean choice)(Code)
Set child components choice flag.
Parameters:
  choice - true if choice, false if not



setComponents
protected void setComponents(ArrayList attribs, ArrayList contents)(Code)
Set child attribute and content components directly. This is provided for use by subclasses requiring special handling, in particular the <structure> element used as a mapping reference.
Parameters:
  attribs -
Parameters:
  contents -



setCreateType
public void setCreateType(String name)(Code)
Set new instance type class name.
Parameters:
  name - class name to be used for creating new instance



setFactoryName
public void setFactoryName(String name)(Code)
Set factory method name.
Parameters:
  name - fully qualified class and method name for object factory



setFlexible
public void setFlexible(boolean flexible)(Code)
Set flexible flag.
Parameters:
  flexible -



setIdChild
final public void setIdChild(IComponent child, ValidationContext vctx)(Code)
Set ID property child. Used to set the ID property associated with a particular class instance. There can only be at most one child ID property for each actual object instance.
Parameters:
  child - child defining the ID property
Parameters:
  vctx - validation context



setLabel
public void setLabel(String label)(Code)
Set label for this definition.
Parameters:
  label - label for this definition



setMarshallerName
public void setMarshallerName(String name)(Code)
Set marshaller class name.
Parameters:
  name - class name to be used for marshalling



setNillable
public void setNillable(boolean nillable)(Code)
Set nillable flag.
Parameters:
  nillable - flag



setOrdered
public void setOrdered(boolean ordered)(Code)
Set child components ordered flag.
Parameters:
  ordered - true if ordered, false if not



setPostsetName
public void setPostsetName(String name)(Code)
Set post-set method name.
Parameters:
  name - member method name to be called after unmarshalling



setPreget
public void setPreget(String name)(Code)
Set pre-get method name.
Parameters:
  name - member method name to be called before marshalling



setPresetName
public void setPresetName(String name)(Code)
Set pre-set method name.
Parameters:
  name - member method name to be called before unmarshalling



setUnmarshallerName
public void setUnmarshallerName(String name)(Code)
Set unmarshaller class name.
Parameters:
  name - class name to be used for unmarshalling



setUsing
public void setUsing(String label)(Code)
Set label for definition to be used.
Parameters:
  label - label for definition to be used



validate
public void validate(ValidationContext vctx)(Code)



verifyConstruction
protected void verifyConstruction(ValidationContext vctx, IClass type)(Code)
Check that there's a way to construct an instance of an object class for input bindings. This can be a factory method, an unmarshaller, a no-argument constructor already defined in the class, or a modifiable class with constructor generation enabled. If a create-type is specified, this is used in place of the declared type. The call always succeeds if the binding is output-only.
Parameters:
  vctx - validation context
Parameters:
  type - constructed object type



Fields inherited from org.jibx.binding.model.NestingElementBase
final public static StringArray s_allowedAttributes(Code)(Java Doc)

Methods inherited from org.jibx.binding.model.NestingElementBase
final public void addChild(Object child)(Code)(Java Doc)
final public Iterator childIterator()(Code)(Java Doc)
final public ArrayList children()(Code)(Java Doc)
public int getDefaultStyle()(Code)(Java Doc)
final public DefinitionContext getDefinitions()(Code)(Java Doc)
public int getStyle()(Code)(Java Doc)
public String getStyleName()(Code)(Java Doc)
public void prevalidate(ValidationContext vctx)(Code)(Java Doc)
void setDefinitions(DefinitionContext ctx)(Code)(Java Doc)
public void setStyleName(String name)(Code)(Java Doc)
public void validate(ValidationContext vctx)(Code)(Java Doc)

Fields inherited from org.jibx.binding.model.ElementBase
final public static int BINDING_ELEMENT(Code)(Java Doc)
final public static int COLLECTION_ELEMENT(Code)(Java Doc)
final public static String[] ELEMENT_NAMES(Code)(Java Doc)
final public static int FORMAT_ELEMENT(Code)(Java Doc)
final public static int INCLUDE_ELEMENT(Code)(Java Doc)
final public static int INPUT_ELEMENT(Code)(Java Doc)
final public static int MAPPING_ELEMENT(Code)(Java Doc)
final public static int NAMESPACE_ELEMENT(Code)(Java Doc)
final public static int OUTPUT_ELEMENT(Code)(Java Doc)
final public static int SPLIT_ELEMENT(Code)(Java Doc)
final public static int STRUCTURE_ELEMENT(Code)(Java Doc)
final public static int TEMPLATE_ELEMENT(Code)(Java Doc)
final public static int VALUE_ELEMENT(Code)(Java Doc)

Methods inherited from org.jibx.binding.model.ElementBase
final public String getComment()(Code)(Java Doc)
final public String name()(Code)(Java Doc)
public void prevalidate(ValidationContext vctx)(Code)(Java Doc)
final public void setComment(String text)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public int type()(Code)(Java Doc)
public void validate(ValidationContext vctx)(Code)(Java Doc)
protected void validateAttributes(IUnmarshallingContext ictx, StringArray attrs) throws JiBXException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.