Java Doc for Group.java in  » Database-ORM » castor » org » exolab » castor » xml » schema » 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 » Database ORM » castor » org.exolab.castor.xml.schema 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.exolab.castor.xml.schema.Structure
      org.exolab.castor.xml.schema.Annotated
         org.exolab.castor.xml.schema.Particle
            org.exolab.castor.xml.schema.Group

All known Subclasses:   org.exolab.castor.xml.schema.ModelGroup,
Group
public class Group extends Particle implements ContentModelGroup,Referable(Code)
An XML Schema Group
author:
   Keith Visco
version:
   $Revision: 6230 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $



Constructor Summary
public  Group()
    
public  Group(String name)
    

Method Summary
public  voidaddElementDecl(ElementDecl elementDecl)
    
public  voidaddGroup(Group group)
    
public  voidaddGroup(ModelGroup group)
    
public  voidaddWildcard(Wildcard wildcard)
    
public  Enumerationenumerate()
    
public  ContentModelGroupgetContentModelGroup()
    
public  ElementDeclgetElementDecl(String name)
     Returns the element declaration with the given name, or null if no element declaration with that name exists in this ContentModelGroup.
Parameters:
  name - the name of the element.
public  StringgetId()
    
public  StringgetName()
     Returns the name of this Group, or null if no name was defined.
public  OrdergetOrder()
    
public  StructuregetParent()
     Returns the parent of this Group, this value may be null if no parent has been set.
public  ParticlegetParticle(int index)
    
public  intgetParticleCount()
    
public  StringgetReferenceId()
    
public  shortgetStructureType()
    
public  booleanhasAny()
     A helper method that returns true if this group contains an element.
public  booleanisEmptiable()
    
public  booleanisModelGroupDefinition()
    
public  booleanremoveElementDecl(ElementDecl element)
     Removes the given ElementDecl from this ContentModelGroup.
Parameters:
  element - the ElementDecl to remove.
public  booleanremoveGroup(Group group)
     Removes the given Group from this Group.
Parameters:
  group - the Group to remove.
public  booleanremoveGroup(ModelGroup group)
     Removes the given ModelGroup Definition from this Group.
Parameters:
  group - the ModelGroup Definition to remove.
public  booleanremoveWildcard(Wildcard wildcard)
     Removes the given Wildcard from this Group.
Parameters:
  wildcard - the Wildcard to remove.
public  voidsetId(String id)
    
public  voidsetIsModelGroupDefinition(boolean isModelGroupDefinition)
    
public  voidsetName(String name)
    
public  voidsetOrder(Order order)
    
protected  voidsetParent(Structure parent)
    
public  voidvalidate()
     Checks the validity of this Group defintion.


Constructor Detail
Group
public Group()(Code)
Creates a new Group, with no name



Group
public Group(String name)(Code)
Creates a new Group with the given name
Parameters:
  name - of the Group




Method Detail
addElementDecl
public void addElementDecl(ElementDecl elementDecl) throws SchemaException(Code)
Adds the given ElementDecl to this ContentModelGroup
Parameters:
  elementDecl - the ElementDecl to add
exception:
  SchemaException - when an ElementDecl alreadyexists with the same name as the given ElementDecl



addGroup
public void addGroup(Group group) throws SchemaException(Code)
Adds the given Group to this ContentModelGroup
Parameters:
  group - the Group to add
exception:
  SchemaException - when a group with the same name as thespecified group already exists in the current scope



addGroup
public void addGroup(ModelGroup group) throws SchemaException(Code)
Adds the given ModelGroup Definition to this Group
Parameters:
  group - the ModelGroup to add
exception:
  SchemaException - when a group with the same name as thespecified group already exists in the current scope



addWildcard
public void addWildcard(Wildcard wildcard) throws SchemaException(Code)
Adds a wildcard to this Group model
Parameters:
  wildcard - the Wildcard to add
exception:
  SchemaException - thrown when the wildcardis an element



enumerate
public Enumeration enumerate()(Code)
Returns an enumeration of all the Particles of this ContentModelGroup an enumeration of the Particles containedwithin this ContentModelGroup



getContentModelGroup
public ContentModelGroup getContentModelGroup()(Code)
Returns the ContentModelGroup for this group Only used for a element the ContentModelGroup for this group



getElementDecl
public ElementDecl getElementDecl(String name)(Code)
Returns the element declaration with the given name, or null if no element declaration with that name exists in this ContentModelGroup.
Parameters:
  name - the name of the element. the ElementDecl with the given name, or null if noElementDecl exists in this ContentModelGroup.



getId
public String getId()(Code)
Returns the ID for this Group the ID for this Group, or null if no ID is present



getName
public String getName()(Code)
Returns the name of this Group, or null if no name was defined. the name of this Group, or null if no name was defined



getOrder
public Order getOrder()(Code)
Returns the compositor for this Group the compositor for this Group



getParent
public Structure getParent()(Code)
Returns the parent of this Group, this value may be null if no parent has been set. the parent Structure of this Group.



getParticle
public Particle getParticle(int index)(Code)
Returns the Particle at the specified index
Parameters:
  index - the index of the particle to return the CMParticle at the specified index



getParticleCount
public int getParticleCount()(Code)
Returns the number of particles contained within this ContentModelGroup the number of particles



getReferenceId
public String getReferenceId()(Code)
Returns the Id used to Refer to this Object the Id used to Refer to this Object
See Also:   Referable



getStructureType
public short getStructureType()(Code)
Returns the type of this Schema Structure the type of this Schema Structure



hasAny
public boolean hasAny()(Code)
A helper method that returns true if this group contains an element. method that returns true if this groupcontains an element.



isEmptiable
public boolean isEmptiable()(Code)
true if this Particle is emptiable



isModelGroupDefinition
public boolean isModelGroupDefinition()(Code)
Tells if the group is a model group definition true if the group is a model group definition ( tag), falseotherwise , , or tags.



removeElementDecl
public boolean removeElementDecl(ElementDecl element)(Code)
Removes the given ElementDecl from this ContentModelGroup.
Parameters:
  element - the ElementDecl to remove. true if the element has been successfully removed, false otherwise.



removeGroup
public boolean removeGroup(Group group)(Code)
Removes the given Group from this Group.
Parameters:
  group - the Group to remove. true if the group has been successfully removed, false otherwise.



removeGroup
public boolean removeGroup(ModelGroup group)(Code)
Removes the given ModelGroup Definition from this Group.
Parameters:
  group - the ModelGroup Definition to remove. true if the group has been successfully removed, false otherwise.



removeWildcard
public boolean removeWildcard(Wildcard wildcard)(Code)
Removes the given Wildcard from this Group.
Parameters:
  wildcard - the Wildcard to remove. true if the wildcard has been successfully removed, false otherwise.



setId
public void setId(String id)(Code)
Sets the ID for this Group
Parameters:
  id - the ID for this Group



setIsModelGroupDefinition
public void setIsModelGroupDefinition(boolean isModelGroupDefinition)(Code)
Sets if the group is a model group definition



setName
public void setName(String name)(Code)
Sets the name of this Group
Parameters:
  name - the new name for this Group



setOrder
public void setOrder(Order order)(Code)
Sets the Order option for this Group
Parameters:
  order - the type of order that this group is restricted to



setParent
protected void setParent(Structure parent)(Code)
Sets the parent for this Group
Parameters:
  parent - the parent Structure for this Group



validate
public void validate() throws ValidationException(Code)
Checks the validity of this Group defintion.
throws:
  ValidationException - when this Group definitionis invalid.



Fields inherited from org.exolab.castor.xml.schema.Particle
public static int UNBOUNDED(Code)(Java Doc)

Methods inherited from org.exolab.castor.xml.schema.Particle
final public int getMaxOccurs()(Code)(Java Doc)
final public int getMinOccurs()(Code)(Java Doc)
public boolean isEmptiable()(Code)(Java Doc)
final protected boolean isMaxOccursSet()(Code)(Java Doc)
final protected boolean isMinOccursSet()(Code)(Java Doc)
final public void setMaxOccurs(int maxOccurs)(Code)(Java Doc)
final public void setMinOccurs(int minOccurs)(Code)(Java Doc)

Methods inherited from org.exolab.castor.xml.schema.Annotated
public void addAnnotation(Annotation annotation)(Code)(Java Doc)
public Enumeration getAnnotations()(Code)(Java Doc)
public void removeAnnotation(Annotation annotation)(Code)(Java Doc)

Fields inherited from org.exolab.castor.xml.schema.Structure
final public static short ANNOTATION(Code)(Java Doc)
final public static short ANYTYPE(Code)(Java Doc)
final public static short APPINFO(Code)(Java Doc)
final public static short ATTRIBUTE(Code)(Java Doc)
final public static short ATTRIBUTE_GROUP(Code)(Java Doc)
final public static short COMPLEX_CONTENT(Code)(Java Doc)
final public static short COMPLEX_TYPE(Code)(Java Doc)
final public static short DOCUMENTATION(Code)(Java Doc)
final public static short ELEMENT(Code)(Java Doc)
final public static short FACET(Code)(Java Doc)
final public static short GROUP(Code)(Java Doc)
final public static short IDENTITY_FIELD(Code)(Java Doc)
final public static short IDENTITY_SELECTOR(Code)(Java Doc)
final public static short KEY(Code)(Java Doc)
final public static short KEYREF(Code)(Java Doc)
final public static short LIST(Code)(Java Doc)
final public static short MODELGROUP(Code)(Java Doc)
final public static short MODELGROUP_REF(Code)(Java Doc)
final public static short REDEFINE(Code)(Java Doc)
final public static short SCHEMA(Code)(Java Doc)
final public static short SIMPLE_CONTENT(Code)(Java Doc)
final public static short SIMPLE_TYPE(Code)(Java Doc)
final public static short UNION(Code)(Java Doc)
final public static short UNIQUE(Code)(Java Doc)
final public static short UNKNOWN(Code)(Java Doc)
final public static short WILDCARD(Code)(Java Doc)

Methods inherited from org.exolab.castor.xml.schema.Structure
abstract public short getStructureType()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
abstract public void validate() throws ValidationException(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.