|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaminePlatform.util.AmineObjects
Title : util.AmineObjects Class
Description : AmineObjects class concerns aspects that are common to all the Amine data structures. It is a 'pure service' class; it has no attribute, only static methods. Copyright: Copyright (c) Adil KABBAJ, 2004-2009
| Field Summary | |
static byte[] |
simpleTypes
|
| Constructor Summary | |
AmineObjects()
|
|
| Method Summary | |
static void |
clearHmpOfArrayList(java.util.HashMap hmp)
Clear the content of a HashMap where values are ArrayList. |
static java.lang.Object |
clone(BindingContext bindContext,
java.lang.Object obj,
java.lang.Object bindInf)
A deep copy is performed by the copy methods : elements are copied too and if an element is a variable and variable binding is considered, then the copy operation will concern also the value of variables. |
static AmineList |
enumeration2AmineList(java.util.Enumeration e)
|
static java.util.Iterator |
enumeration2Iterator(java.util.Enumeration e)
|
static boolean |
equal(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
Check if the two specified objects obj1 and obj2 are equal (in content). |
static boolean |
equal(java.lang.Object obj1,
java.lang.Object obj2)
Check if the two specified objects obj1 and obj2 are equal (in content). |
static java.lang.Object |
generalize(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
Get the generalization of the two specified objects obj1 and obj2. |
static java.lang.Object |
generalize(java.lang.Object obj1,
java.lang.Object obj2)
Get the generalization of the two specified objects obj1 and obj2. |
static byte |
getClassOfObject(java.lang.Object obj)
Get the class of the specified object obj. |
static java.lang.String |
getName(java.lang.Object obj,
Lexicon lexicon)
Get the name of the object obj in the given lexicon. |
static boolean |
in(byte v,
byte[] vctByte)
Check if the byte v is in the array vctByte. |
static boolean |
isBoolean(java.lang.Object obj)
Check if the specified Object obj is a Boolean. |
static boolean |
isConform(BindingContext bindContext,
java.lang.Object obj,
java.lang.Object bindInf)
Check that conformity constraint is satisfied for an object that can be a CG or it can contain a CG : designator of each concept in a CG must be conform to its concept type. |
static boolean |
isDouble(java.lang.Object obj)
Check if the specified Object obj is a Double. |
static boolean |
isIdent(java.lang.Object obj)
Check if the specified Object obj is an Identifier; if obj is an Identifier or it is a Type or an Individual object, both represent (are associated to) identifiers in the context of a multi-lingua ontology. |
static boolean |
isIdentOrString(java.lang.Object obj)
Check if the specified Object obj is an Identifier or a String. |
static boolean |
isInteger(java.lang.Object obj)
Check if the specified Object obj is an Integer. |
static boolean |
isNumber(java.lang.Object obj)
Check if the specified Object obj is a Number; an Integer or a Double. |
static boolean |
isSimpleObject(java.lang.Object obj)
Check if the class of the specified obj is an elementary class ; an Integer, a Double, a Boolean, a String, an Identifier or a CS object. |
static boolean |
isString(java.lang.Object obj)
Check if the specified Object obj is a String. |
static java.lang.Object |
match(byte matchOperation,
BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
Match the two specified objects obj1 and obj2, according to the value of the parameter matchOperation. |
static java.lang.Object |
match(byte matchOperation,
java.lang.Object obj1,
java.lang.Object obj2)
Match the two specified objects obj1 and obj2, according to the value of the parameter matchOperation. |
static java.lang.Object |
maximalJoin(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
Get the maximal join of the two specified objects obj1 and obj2. |
static java.lang.Object |
maximalJoin(java.lang.Object obj1,
java.lang.Object obj2)
Get the maximal join of the two specified objects obj1 and obj2. |
static java.lang.String |
objsToString(java.lang.Object[] objs,
int indCurrElem,
BindingContext bindContext,
java.lang.Object bindInf,
Lexicon lexicon,
boolean isList)
Return the textual formulation of a list of objects. |
static java.lang.Object |
parse(java.lang.String objInString)
|
static java.lang.Object |
parse(java.lang.String objInString,
Lexicon lexicon)
Parse the textual formulation of an Amine Object (parameter objInString) using the specified lexicon and returns its internal representation (an Amine Object). |
static boolean |
subsume(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
Check if the first object obj1 subsumes (is more general than) the second object obj2. |
static boolean |
subsume(java.lang.Object obj1,
java.lang.Object obj2)
Check if the first object obj1 subsumes (is more general than) the second object obj2. |
static java.lang.Object |
subsumeWithResult(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
Check if the first object obj1 subsumes (is more general than) the second object obj2. |
static java.lang.Object |
subsumeWithResult(java.lang.Object obj1,
java.lang.Object obj2)
Check if the first object obj1 subsumes (is more general than) the second object obj2. |
static java.lang.String |
toString(BindingContext bindContext,
java.lang.Object obj,
java.lang.Object bindInf,
Lexicon lexicon)
Return the textual formulation of an Object. |
static java.lang.String |
toString(java.lang.Object obj)
Return the textual formulation of an Object. |
static java.lang.String |
toString(java.lang.Object obj,
Lexicon lexicon)
Return the textual formulation of an Object. |
static boolean |
unify(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static byte[] simpleTypes
| Constructor Detail |
public AmineObjects()
| Method Detail |
public static boolean isInteger(java.lang.Object obj)
obj - : an object
public static boolean isDouble(java.lang.Object obj)
obj - : an object
public static boolean isNumber(java.lang.Object obj)
obj - : an object
public static boolean isBoolean(java.lang.Object obj)
obj - : an object
public static boolean isIdentOrString(java.lang.Object obj)
obj - : an object
public static boolean isIdent(java.lang.Object obj)
obj - : an object
public static boolean isString(java.lang.Object obj)
obj - : an object
public static AmineList enumeration2AmineList(java.util.Enumeration e)
public static java.util.Iterator enumeration2Iterator(java.util.Enumeration e)
public static java.lang.Object clone(BindingContext bindContext,
java.lang.Object obj,
java.lang.Object bindInf)
bindContext - The Binding contextobj - An objectbindInf - The binding information related to the binding context and to obj
public static boolean isConform(BindingContext bindContext,
java.lang.Object obj,
java.lang.Object bindInf)
bindContext - obj - bindInf -
public static java.lang.Object match(byte matchOperation,
java.lang.Object obj1,
java.lang.Object obj2)
matchOperation - A byte value that specifies which kind of matching to applyobj1 - The object to matchobj2 - The object to match
public static java.lang.Object match(byte matchOperation,
BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
matchOperation - A byte value that specifies which kind of matching to apply.
Atually, these values are defined in AmineConstants interface and are: EQUAL,
UNIFY, SUBSUME, SUBSUME_WITH_RSLT, MAXIMAL_JOIN, and GENERALIZE.bindContext - The binding contextobj1 - The object to matchbindInf - The binding information for obj1obj2 - The object to matchbindInfObj - The binding information for obj2
public static boolean equal(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
bindContext - The binding contextobj1 - An objectbindInf - The binding information for obj1obj2 - An objectbindInfObj - The binding information for obj2
public static boolean equal(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - An objectobj2 - An object
public static boolean unify(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
bindContext - The binding contextobj1 - An objectbindInf - The binding information for obj1obj2 - An objectbindInfObj - The binding information for obj2
public static boolean subsume(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
bindContext - The binding contextobj1 - An objectbindInf - The binding information for obj1obj2 - An objectbindInfObj - The binding information for obj2
public static boolean subsume(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - An objectobj2 - An object
public static java.lang.Object subsumeWithResult(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
bindContext - The binding contextobj1 - An objectbindInf - The binding information for obj1obj2 - An objectbindInfObj - The binding information for obj2
public static java.lang.Object subsumeWithResult(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - An objectobj2 - An object
public static java.lang.Object maximalJoin(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
bindContext - The binding contextobj1 - An objectbindInf - The binding information for obj1obj2 - An objectbindInfObj - The binding information for obj2
public static java.lang.Object maximalJoin(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - An objectobj2 - An object
public static java.lang.Object generalize(BindingContext bindContext,
java.lang.Object obj1,
java.lang.Object bindInf,
java.lang.Object obj2,
java.lang.Object bindInfObj)
bindContext - The binding contextobj1 - An objectbindInf - The binding information for obj1obj2 - An objectbindInfObj - The binding information for obj2
public static java.lang.Object generalize(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - An objectobj2 - An object
public static java.lang.Object parse(java.lang.String objInString,
Lexicon lexicon)
throws ParsingException
objInString - a textual formulation of an Amine Objectlexicon - The lexicon to use during the parsing
ParsingException
public static java.lang.Object parse(java.lang.String objInString)
throws ParsingException
ParsingException
public static java.lang.String toString(java.lang.Object obj,
Lexicon lexicon)
throws ToStringException
obj - An Objectlexicon - The lexicon to use during the textual formulation of the object
ToStringException - if an error occurs during the textual
formulation of obj.
public static java.lang.String toString(java.lang.Object obj)
throws ToStringException
obj - An Object
ToStringException - if an error occurs during the textual
formulation of obj.
public static java.lang.String toString(BindingContext bindContext,
java.lang.Object obj,
java.lang.Object bindInf,
Lexicon lexicon)
throws ToStringException
bindContext - The Binding contextobj - An ObjectbindInf - The binding information related to the binding context and to objlexicon - The lexicon to use during the textual formulation of the object
ToStringException - if an error occurs during the textual
formulation of obj.
public static java.lang.String objsToString(java.lang.Object[] objs,
int indCurrElem,
BindingContext bindContext,
java.lang.Object bindInf,
Lexicon lexicon,
boolean isList)
throws ToStringException
objs - An array of ObjectsindCurrElem - The index in objs for the element to start with.bindContext - The Binding contextbindInf - The binding information related to the binding context and to objslexicon - The lexicon in use during the textual formulationisList - true if objs are elements of an AmineList and false otherwise.
ToStringException
public static java.lang.String getName(java.lang.Object obj,
Lexicon lexicon)
throws ToStringException
obj - could be null, an Identifier, a Variable, a Type CS or an Individual CS object.lexicon - The lexicon to consider
ToStringExceptionpublic static byte getClassOfObject(java.lang.Object obj)
obj - : an object
public static boolean isSimpleObject(java.lang.Object obj)
obj - An Object
public static void clearHmpOfArrayList(java.util.HashMap hmp)
hmp - A HashMap of ArrayList
public static boolean in(byte v,
byte[] vctByte)
v - A byte valuevctByte - An array of byte
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||