|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
nesstar.api.Catalog
nesstar.api.faster.Catalog
public class Catalog
A new Catalog Code automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static String |
CLASS_ID
|
| Fields inherited from class nesstar.rdf.RDFObject |
|---|
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP |
| Constructor Summary | |
|---|---|
Catalog(RDFDB db,
URL id)
Create an object with the indicated id in the indicated db |
|
| Method Summary | |
|---|---|
Bookmark |
AddChild(RDFObject child)
Add a child in the catalog tree |
List |
AddChild(RDFObject child,
BasicExecutorLog log)
Add a child in the catalog tree |
Bookmark |
AddChildAt(RDFObject child,
Integer position)
Add a child in the catalog tree at a given position |
List |
AddChildAt(RDFObject child,
Integer position,
BasicExecutorLog log)
Add a child in the catalog tree at a given position |
void |
clear()
Clear all properties of this object |
RDFRef |
get_children()
|
static Vector |
getAllInstances()
|
static Vector |
getAllInstances(RDFDB db)
|
List |
getChildren()
Represents the set of object pointed to by a catalog |
static FeatureDescriptor |
getDescriptor(String featureName)
get the descriptor for a feature of the class, either method or attribute Note: the methods' feature are still not implemented |
static Collection |
getGetterMethods()
|
static Catalog |
getInstance(RDFDB db,
URL id)
If an object of type Catalog with the indicated id exists in the db returns it otherwise create a new object in the db and returns it |
static Catalog |
getInstance(String rdf)
|
static Collection |
getPartsDescriptor()
|
void |
initialised()
Notify that the object has been created and its properties setup for the first time. |
static void |
listenForNewObj(NewObjListener listener)
Register to be notified when new objects are added. |
static Catalog |
newInstance(RDFDB db)
Create a new object of this type with a locally unique id and returns it |
Bookmark |
PathsTo(RDFObject to)
Return a list of paths that lead from the catalog to the 'to' object. |
String |
PathsTo(RDFObject to,
BasicExecutorLog log)
Return a list of paths that lead from the catalog to the 'to' object. |
Bookmark |
RangeQuery(String query,
Integer startFrom,
Integer maxHits,
Boolean withPaths)
A general query API. |
List |
RangeQuery(String query,
Integer startFrom,
Integer maxHits,
Boolean withPaths,
BasicExecutorLog log)
A general query API. |
Bookmark |
Remove()
Remove the catalog with all the links to it |
void |
Remove(BasicExecutorLog log)
Remove the catalog with all the links to it |
Bookmark |
RemoveChild(RDFObject childURL)
Remove a child from the current catalog. |
void |
RemoveChild(RDFObject childURL,
BasicExecutorLog log)
Remove a child from the current catalog. |
Bookmark |
RemoveChildAt(Integer childIndex)
Remove a child from the current catalog. |
void |
RemoveChildAt(Integer childIndex,
BasicExecutorLog log)
Remove a child from the current catalog. |
static Catalog |
retrieve(URL id)
If an object of type Catalog with the indicated id has already being retrieved from the network returns it otherwise retrieve it together with its class information (methods, properties, etc.) |
void |
set_children(RDFRef children)
|
void |
setChildren(List children)
Represents the set of object pointed to by a catalog |
| Methods inherited from class nesstar.api.Catalog |
|---|
AddDataset, AddDataset, DeleteAllDatasets, DeleteAllDatasets, get_datasets, getDatasets, Query, Query, Reindex, Reindex, set_datasets, setDatasets |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String CLASS_ID
| Constructor Detail |
|---|
public Catalog(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be createdid - the id of the object to create
Exception| Method Detail |
|---|
public void setChildren(List children)
throws Exception
Represents the set of object pointed to by a catalog
children -
Exceptionpublic void set_children(RDFRef children)
children -
public static Vector getAllInstances(RDFDB db)
throws Exception
db - the db where the instances are to be found
Exception
public static Vector getAllInstances()
throws Exception
Exception
public static Catalog getInstance(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be found or createdid - the id of the object to retrieve or create
Exception
public static Catalog getInstance(String rdf)
throws Exception
rdf - some rdf code that contains a description of an object of this kind
Exception
public List getChildren()
throws Exception
Represents the set of object pointed to by a catalog
Exception
public RDFRef get_children()
throws Exception
Exceptionpublic static FeatureDescriptor getDescriptor(String featureName)
featureName - public static Collection getPartsDescriptor()
public static Collection getGetterMethods()
public static Catalog newInstance(RDFDB db)
throws Exception
db - the db where the object is to be found or created
Exceptionpublic static void listenForNewObj(NewObjListener listener)
listener - the listenerpublic void initialised()
initialised in class Catalog
public static Catalog retrieve(URL id)
throws Exception
id - the id of the object to retrieve
Exceptionpublic void clear()
RDFObject
clear in class Catalog
public Bookmark AddChild(RDFObject child)
throws Exception
Add a child in the catalog tree
child - the URL of the object to be added
Exception
public List AddChild(RDFObject child,
BasicExecutorLog log)
throws Exception
Add a child in the catalog tree
child - the URL of the object to be addedlog - the Executor of this method;if null a default one is used
Exception
public Bookmark AddChildAt(RDFObject child,
Integer position)
throws Exception
Add a child in the catalog tree at a given position
child - the URL of the object to be addedposition - the position in the children list: 1..children.size()
Exception
public List AddChildAt(RDFObject child,
Integer position,
BasicExecutorLog log)
throws Exception
Add a child in the catalog tree at a given position
child - the URL of the object to be addedposition - the position in the children list: 1..children.size()log - the Executor of this method;if null a default one is used
Exception
public Bookmark RangeQuery(String query,
Integer startFrom,
Integer maxHits,
Boolean withPaths)
throws Exception
query ::= GET result_object where_expr order_clause
where_expr ::= WHERE expr
| empty
result_object ::= identifier
order_clause ::= ORDER BY field_list
| empty
field_list ::= field_list ',' field
| field
field ::= ASCENDING property
| DESCENDING property
| property
expr ::= expr OR term
| expr XOR term
| term
term ::= term AND factor
| factor
factor ::= primary
| sub_expr
| NOT primary
sub_expr ::= '(' expr ')'
primary ::= property relation literal
| property relation property
| property FINDS near_expr
| property IN string_list
| property IS NULL
property ::= domain_object '.' identifier
| domain_object '.' '*'
domain_object ::= identifier
near_expr ::= near_expr near_operator literal
| first_near_expr
first_near_expr ::= literal near_operator literal
near_operator ::= NEAR
| NEAR word_distance
word_distance ::= '(' number ')'
string_list ::= string_list ',' string
| string
literal ::= string
| number
| date
relation ::= CONTAINS
| CONTAINSLEADING
| STARTSWITH
| ENDSWITH
| '>'
| '>='
| '<'
| '<='
| '=='
| '!='
| LIKE
empty ::= /* nothing */
GET Variable WHERE Study.abstractText CONTAINS 'smoking' AND Variable.label CONTAINS 'cancer'
GET Study WHERE Study.distributionDate >= '1989/02/10'
GET Study WHERE Study.* CONTAINS '1987'Find all studies which have variables with at least one of its text fields containing the word 'smoking'
GET Study WHERE Variable.* CONTAINS 'smoking'
query - the query to be performedstartFrom - the one-based position of the first returned hitmaxHits - the maximun number of object returnedwithPaths - if true return the path to the object from the searched catalog
Exception
public List RangeQuery(String query,
Integer startFrom,
Integer maxHits,
Boolean withPaths,
BasicExecutorLog log)
throws Exception
query ::= GET result_object where_expr order_clause
where_expr ::= WHERE expr
| empty
result_object ::= identifier
order_clause ::= ORDER BY field_list
| empty
field_list ::= field_list ',' field
| field
field ::= ASCENDING property
| DESCENDING property
| property
expr ::= expr OR term
| expr XOR term
| term
term ::= term AND factor
| factor
factor ::= primary
| sub_expr
| NOT primary
sub_expr ::= '(' expr ')'
primary ::= property relation literal
| property relation property
| property FINDS near_expr
| property IN string_list
| property IS NULL
property ::= domain_object '.' identifier
| domain_object '.' '*'
domain_object ::= identifier
near_expr ::= near_expr near_operator literal
| first_near_expr
first_near_expr ::= literal near_operator literal
near_operator ::= NEAR
| NEAR word_distance
word_distance ::= '(' number ')'
string_list ::= string_list ',' string
| string
literal ::= string
| number
| date
relation ::= CONTAINS
| CONTAINSLEADING
| STARTSWITH
| ENDSWITH
| '>'
| '>='
| '<'
| '<='
| '=='
| '!='
| LIKE
empty ::= /* nothing */
GET Variable WHERE Study.abstractText CONTAINS 'smoking' AND Variable.label CONTAINS 'cancer'
GET Study WHERE Study.distributionDate >= '1989/02/10'
GET Study WHERE Study.* CONTAINS '1987'Find all studies which have variables with at least one of its text fields containing the word 'smoking'
GET Study WHERE Variable.* CONTAINS 'smoking'
query - the query to be performedstartFrom - the one-based position of the first returned hitmaxHits - the maximun number of object returnedwithPaths - if true return the path to the object from the searched cataloglog - the Executor of this method;if null a default one is used
Exception
public Bookmark RemoveChild(RDFObject childURL)
throws Exception
Remove a child from the current catalog.
childURL - An object belonging to the catalog. Received by the Server as a URL in either short or long form, such as<br> "fCatalog/XTEST2" or "http://nesstar2.essex.ac.uk/obj/fCatalog/XTEST2"
Exception
public void RemoveChild(RDFObject childURL,
BasicExecutorLog log)
throws Exception
Remove a child from the current catalog.
childURL - An object belonging to the catalog. Received by the Server as a URL in either short or long form, such as<br> "fCatalog/XTEST2" or "http://nesstar2.essex.ac.uk/obj/fCatalog/XTEST2"log - the Executor of this method;if null a default one is used
Exception
public Bookmark RemoveChildAt(Integer childIndex)
throws Exception
Remove a child from the current catalog.
childIndex - The index of the child object. The first child starts at index 1
Exception
public void RemoveChildAt(Integer childIndex,
BasicExecutorLog log)
throws Exception
Remove a child from the current catalog.
childIndex - The index of the child object. The first child starts at index 1log - the Executor of this method;if null a default one is used
Exception
public Bookmark Remove()
throws Exception
Remove the catalog with all the links to it
Exception
public void Remove(BasicExecutorLog log)
throws Exception
Remove the catalog with all the links to it
log - the Executor of this method;if null a default one is used
Exception
public Bookmark PathsTo(RDFObject to)
throws Exception
Return a list of paths that lead from the catalog to the 'to' object. A path is a sequence of property traversals. For example .children[2].children[3] is a path that leads from the catalog to the third child of the second catalog's subcatalog.
to - The object to which the paths lead.
Exception
public String PathsTo(RDFObject to,
BasicExecutorLog log)
throws Exception
Return a list of paths that lead from the catalog to the 'to' object. A path is a sequence of property traversals. For example .children[2].children[3] is a path that leads from the catalog to the third child of the second catalog's subcatalog.
to - The object to which the paths lead.log - the Executor of this method;if null a default one is used
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||