Java Doc for Person.java in  » Rule-Engine » Mandarax » test » org » mandarax » reference » 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 » Rule Engine » Mandarax » test.org.mandarax.reference 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mandarax.kernel.LObject
      test.org.mandarax.reference.Person

Person
public class Person extends org.mandarax.kernel.LObject (Code)
Test class providing a domain model for the test cases.
author:
   Jens Dietrich
version:
   3.4 <7 March 05>
since:
   1.1



Constructor Summary
public  Person()
     Constructor.
public  Person(String n)
     Constructor.

Method Summary
public  booleanequals(Object obj)
     Indicates whether the object equals the receiver.
public  booleanequalsNot(Object obj)
     Indicates whether the object does not equal the receiver.
public  Personfather()
     Get the father of this person.
public static  Personget(String n)
     Get the person with the name.
static  TermgetComplexTerm(String n, String functName)
     Build a complex term from a string.
static  TermgetConstant(String n)
     Get a constant with the provided name.
public static  FactgetFact(String predicate, String name1, String name2)
     Get a fact.
public  StringgetName()
     Get the name.
static  MethodgetPredicate(String name)
     Get a type one method with one parameter.
static  MethodgetPredicate(String name, Class parType)
     Get a type one method with one parameter (of the type specified).
public static  QuerygetQuery(String predicate, String name1, String name2)
     Get a query.
public static  RulegetRule(String headPredicate, String headName1, String headName2, String bodyPredicate, String bodyName1, String bodyName2)
     Build a rule.
public static  RulegetRule(String headPredicate, String headName1, String headName2, String bodyPredicate1, String bodyName11, String bodyName12, String bodyPredicate2, String bodyName21, String bodyName22)
     Build a rule.
public static  RulegetRule(String headPredicate, String headName1, String headName2, String bodyPredicate1, String bodyName11, String bodyName12, String bodyPredicate2, String bodyName21, String bodyName22, String bodyPredicate3, String bodyName31, String bodyName32)
     Build a rule.
public static  TermgetTerm(String n)
     Get the term with the name. We build a variable if the string is one of the registered variable names. We build a function if the string is one of the registered function names followed by a string in brackets.
public static  TermgetVariable(String x)
     Get a variable with the provided name.
public  inthashCode()
     Get the hash code of the object.
public  booleanisBrotherOf(Person p)
     Method used to build a test predicate .
public  booleanisFatherOf(Person p)
     Method used to build a test predicate .
public  booleanisGrandFatherOf(Person p)
     Method used to build a test predicate .
public  booleanisOncleOf(Person p)
     Method used to build a test predicate .
public  booleanisRelativeOf(Person p)
     Method used to build a test predicate .
public  booleanisSonOf(Person p)
     Method used to build a test predicate .
public  Personson()
     Get the son of this person.
public  StringtoString()
     Convert the receiver to a string.


Constructor Detail
Person
public Person()(Code)
Constructor.



Person
public Person(String n)(Code)
Constructor.
Parameters:
  n - the name of the person




Method Detail
equals
public boolean equals(Object obj)(Code)
Indicates whether the object equals the receiver.
Parameters:
  obj - the object to compare this object with true if the objects are equal, false otherwise



equalsNot
public boolean equalsNot(Object obj)(Code)
Indicates whether the object does not equal the receiver.
Parameters:
  obj - the object to compare this object with false if the objects are equal, true otherwise



father
public Person father()(Code)
Get the father of this person. the instance representing the father of this object



get
public static Person get(String n)(Code)
Get the person with the name. an instance
Parameters:
  n - a name



getComplexTerm
static Term getComplexTerm(String n, String functName)(Code)
Build a complex term from a string. a complex term
Parameters:
  n - the string representing the term
Parameters:
  functName - the name of the function



getConstant
static Term getConstant(String n)(Code)
Get a constant with the provided name. a constant term
Parameters:
  n - the name of the person that will be wrapped by the term



getFact
public static Fact getFact(String predicate, String name1, String name2)(Code)
Get a fact. a fact
Parameters:
  predicate - the string representation of the predicate
Parameters:
  name1 - the string representation of the first term
Parameters:
  name2 - the string representation of the second term



getName
public String getName()(Code)
Get the name. the name of the person



getPredicate
static Method getPredicate(String name)(Code)
Get a type one method with one parameter. a java method
Parameters:
  name - the string representation of the predicate



getPredicate
static Method getPredicate(String name, Class parType)(Code)
Get a type one method with one parameter (of the type specified). a method
Parameters:
  name - the string representation of the predicate
Parameters:
  parType - the type of the parameter



getQuery
public static Query getQuery(String predicate, String name1, String name2)(Code)
Get a query. a query
Parameters:
  predicate - the string representation of the predicate
Parameters:
  name1 - the string representation of the first term
Parameters:
  name2 - the string representation of the second term



getRule
public static Rule getRule(String headPredicate, String headName1, String headName2, String bodyPredicate, String bodyName1, String bodyName2)(Code)
Build a rule. a rule
Parameters:
  headPredicate - the string representation of the head predicate
Parameters:
  headName1 - the string representation of a term
Parameters:
  headName2 - the string representation of a term
Parameters:
  bodyPredicate - the string representation of the predicate of the first (and only) fact in the body
Parameters:
  bodyName1 - the string representation of a term
Parameters:
  bodyName2 - the string representation of a term



getRule
public static Rule getRule(String headPredicate, String headName1, String headName2, String bodyPredicate1, String bodyName11, String bodyName12, String bodyPredicate2, String bodyName21, String bodyName22)(Code)
Build a rule. a rule
Parameters:
  headPredicate - the string representation of the head predicate
Parameters:
  headName1 - the string representation of a term
Parameters:
  headName2 - the string representation of a term
Parameters:
  bodyPredicate1 - the string representation of the predicate of the first fact in the body
Parameters:
  bodyName11 - the string representation of a term
Parameters:
  bodyName12 - the string representation of a term
Parameters:
  bodyPredicate2 - the string representation of the predicate of the second fact in the body
Parameters:
  bodyName21 - the string representation of a term
Parameters:
  bodyName22 - the string representation of a term



getRule
public static Rule getRule(String headPredicate, String headName1, String headName2, String bodyPredicate1, String bodyName11, String bodyName12, String bodyPredicate2, String bodyName21, String bodyName22, String bodyPredicate3, String bodyName31, String bodyName32)(Code)
Build a rule. a rule
Parameters:
  headPredicate - the string representation of the head predicate
Parameters:
  headName1 - the string representation of a term
Parameters:
  headName2 - the string representation of a term
Parameters:
  bodyPredicate1 - the string representation of the predicate of the first fact in the body
Parameters:
  bodyName11 - the string representation of a term
Parameters:
  bodyName12 - the string representation of a term
Parameters:
  bodyPredicate2 - the string representation of the predicate of the second fact in the body
Parameters:
  bodyName21 - the string representation of a term
Parameters:
  bodyName22 - the string representation of a term
Parameters:
  bodyPredicate3 - the string representation of the predicate of the third fact in the body
Parameters:
  bodyName31 - the string representation of a term
Parameters:
  bodyName32 - the string representation of a term



getTerm
public static Term getTerm(String n)(Code)
Get the term with the name. We build a variable if the string is one of the registered variable names. We build a function if the string is one of the registered function names followed by a string in brackets. Otherwise we build a constant. a term
Parameters:
  n - the string representation of a term



getVariable
public static Term getVariable(String x)(Code)
Get a variable with the provided name. a variable term
Parameters:
  x - the variable name



hashCode
public int hashCode()(Code)
Get the hash code of the object. the hash value



isBrotherOf
public boolean isBrotherOf(Person p)(Code)
Method used to build a test predicate .
See Also:   org.mandarax.kernel.meta.JPredicate true if p represents the brother of this instance
Parameters:
  p - another person



isFatherOf
public boolean isFatherOf(Person p)(Code)
Method used to build a test predicate .
See Also:   org.mandarax.kernel.meta.JPredicate
Parameters:
  p - another person



isGrandFatherOf
public boolean isGrandFatherOf(Person p)(Code)
Method used to build a test predicate .
See Also:   org.mandarax.kernel.meta.JPredicate
Parameters:
  p - another person



isOncleOf
public boolean isOncleOf(Person p)(Code)
Method used to build a test predicate .
See Also:   org.mandarax.kernel.meta.JPredicate
Parameters:
  p - another person



isRelativeOf
public boolean isRelativeOf(Person p)(Code)
Method used to build a test predicate .
See Also:   org.mandarax.kernel.meta.JPredicate
Parameters:
  p - another person



isSonOf
public boolean isSonOf(Person p)(Code)
Method used to build a test predicate .
See Also:   org.mandarax.kernel.meta.JPredicate
Parameters:
  p - another person



son
public Person son()(Code)
Get the son of this person. the instance representing the son of this object



toString
public String toString()(Code)
Convert the receiver to a string. the string representation of this object




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.