Java Doc for Multiplicity.java in  » 6.0-JDK-Modules-com.sun » tools » com » sun » tools » internal » xjc » 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 » 6.0 JDK Modules com.sun » tools » com.sun.tools.internal.xjc.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.internal.xjc.model.Multiplicity

Multiplicity
final public class Multiplicity (Code)
represents a possible number of occurence. Usually, denoted by a pair of integers like (1,1) or (5,10). A special value "unbounded" is allowed as the upper bound.

For example, (0,unbounded) corresponds to the '*' occurence of DTD. (0,1) corresponds to the '?' occurence of DTD.
author:
   Kohsuke KAWAGUCHI



Field Summary
final public static  MultiplicityONE
     the constant representing the (1,1) multiplicity.
final public static  MultiplicityOPTIONAL
     the constant representing the (0,1) multiplicity.
final public static  MultiplicityPLUS
     the constant representing the (1,unbounded) multiplicity.
final public static  MultiplicitySTAR
     the constant representing the (0,unbounded) multiplicity.
final public static  MultiplicityZERO
     the constant representing the (0,0) multiplicity.
final public  Integermax
    
final public  intmin
    


Method Summary
public static  Multiplicitychoice(Multiplicity lhs, Multiplicity rhs)
    
public static  Multiplicitycreate(int min, Integer max)
    
public  booleanequals(Object o)
    
public  StringgetMaxString()
     Returns the string representation of the 'max' property.
public static  Multiplicitygroup(Multiplicity lhs, Multiplicity rhs)
    
public  inthashCode()
    
public  booleanincludes(Multiplicity rhs)
     Returns true if the multiplicity represented by this object completely includes the multiplicity represented by the other object.
public  booleanisAtMostOnce()
     returns true if the multiplicity is (0,1) or (1,1).
public  booleanisOptional()
    
public  booleanisUnique()
     returns true if the multiplicity is (1,1).
public  booleanisZero()
     returns true if the multiplicity is (0,0).
public  MultiplicitymakeOptional()
    
public  MultiplicitymakeRepeated()
    
public static  Multiplicitymultiply(Multiplicity lhs, Multiplicity rhs)
    
public static  MultiplicityoneOrMore(Multiplicity c)
    
public  StringtoString()
     gets the string representation.

Field Detail
ONE
final public static Multiplicity ONE(Code)
the constant representing the (1,1) multiplicity.



OPTIONAL
final public static Multiplicity OPTIONAL(Code)
the constant representing the (0,1) multiplicity.



PLUS
final public static Multiplicity PLUS(Code)
the constant representing the (1,unbounded) multiplicity.



STAR
final public static Multiplicity STAR(Code)
the constant representing the (0,unbounded) multiplicity.



ZERO
final public static Multiplicity ZERO(Code)
the constant representing the (0,0) multiplicity.



max
final public Integer max(Code)



min
final public int min(Code)





Method Detail
choice
public static Multiplicity choice(Multiplicity lhs, Multiplicity rhs)(Code)



create
public static Multiplicity create(int min, Integer max)(Code)



equals
public boolean equals(Object o)(Code)



getMaxString
public String getMaxString()(Code)
Returns the string representation of the 'max' property. Either a number or a token "unbounded".



group
public static Multiplicity group(Multiplicity lhs, Multiplicity rhs)(Code)



hashCode
public int hashCode()(Code)



includes
public boolean includes(Multiplicity rhs)(Code)
Returns true if the multiplicity represented by this object completely includes the multiplicity represented by the other object. For example, we say [1,3] includes [1,2] but [2,4] doesn't include [1,3].



isAtMostOnce
public boolean isAtMostOnce()(Code)
returns true if the multiplicity is (0,1) or (1,1).



isOptional
public boolean isOptional()(Code)
returns true if the multiplicity is (0,1)



isUnique
public boolean isUnique()(Code)
returns true if the multiplicity is (1,1).



isZero
public boolean isZero()(Code)
returns true if the multiplicity is (0,0).



makeOptional
public Multiplicity makeOptional()(Code)



makeRepeated
public Multiplicity makeRepeated()(Code)



multiply
public static Multiplicity multiply(Multiplicity lhs, Multiplicity rhs)(Code)



oneOrMore
public static Multiplicity oneOrMore(Multiplicity c)(Code)



toString
public String toString()(Code)
gets the string representation. mainly debug purpose.



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.