public class SchemaBox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANY_SI |
static java.lang.String |
ASSOCIATIONTYPE_SI |
static java.lang.String |
CONTENTTYPE_SI |
static int |
COUNT_ATLEASTONE |
static int |
COUNT_ATMOSTONE |
static int |
COUNT_MULTIPLE |
static int |
COUNT_SINGLE |
static java.lang.String |
DEFAULT_ASSOCIATION_SI |
static java.lang.String |
DEFAULT_OCCURRENCE_SI |
static java.lang.String |
DEFAULT_ROLE_1_SI |
static java.lang.String |
DEFAULT_ROLE_2_SI |
static java.lang.String |
OCCURRENCETYPE_SI |
static java.lang.String |
ROLE_SI |
static java.lang.String |
ROLECLASS_SI |
Constructor and Description |
---|
SchemaBox()
Creates a new instance of SchemaBox
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection |
getAssociationTypeRoles(Topic associationType)
Gets all roles that can be used with the specified association type.
|
static java.util.Collection |
getAssociationTypesFor(Topic topic)
Gets all association types that can be used with the specified topic.
|
static java.util.Collection |
getContentTypesOf(Topic topic)
Gets all content types of this class is an instance of.
|
private static void |
getContentTypesOfNoSupers(Topic topic,
java.util.Collection processed,
java.util.Collection types,
Topic contenttype) |
static java.util.Collection |
getInstancesOf(Topic topic)
Gets all instances of a class topic.
|
private static void |
getInstancesOf(Topic topic,
java.util.Collection topics,
java.util.Collection processed) |
static java.util.Collection |
getOccurrenceTypesFor(Topic topic)
Gets all occurrence types that can be used with the specified topic.
|
static Topic |
getRoleClass(Topic role)
Gets the content type topic each topic should be an instance of when
they are in the specified role in an association.
|
static java.util.Collection |
getSubClassesOf(Topic topic)
Gets sub classes of a topic using the standard topics for association type
and role topics.
|
static java.util.Collection |
getSubClassesOf(Topic topic,
java.lang.String subSI,
java.lang.String assocSI,
java.lang.String superSI)
Gets sub classes of a topic using custom topics for association type and
role topics in the association.
|
static java.util.Collection |
getSuperClassesOf(Topic topic)
Gets super classes of a topic using the standard topics for association type
and role topics.
|
static java.util.Collection |
getSuperClassesOf(Topic topic,
java.lang.String subSI,
java.lang.String assocSI,
java.lang.String superSI)
Gets super classes of a topic using custom topics for association type and
role topics in the association.
|
static java.util.Collection |
getSuperClassesOfRecursive(Topic topic)
Recursively gets all super classes of a topic using the standard association
type and association roles.
|
private static void |
getSuperClassesOfRecursive(Topic topic,
java.util.HashSet processed,
java.util.HashSet classes) |
static boolean |
isInstanceOf(Topic topic,
Topic cls)
Checks if a topic is instance of the specified class in the schema.
|
private static boolean |
isInstanceOf(Topic topic,
Topic cls,
java.util.Collection processed) |
static void |
setSuperClass(Topic subclass,
Topic superclass)
Creates a new superclass-subclass association with the specified topics as
the sub class and the super class.
|
public static final java.lang.String ROLECLASS_SI
public static final java.lang.String CONTENTTYPE_SI
public static final java.lang.String ASSOCIATIONTYPE_SI
public static final java.lang.String OCCURRENCETYPE_SI
public static final java.lang.String ROLE_SI
public static final java.lang.String DEFAULT_OCCURRENCE_SI
public static final java.lang.String DEFAULT_ASSOCIATION_SI
public static final java.lang.String DEFAULT_ROLE_1_SI
public static final java.lang.String DEFAULT_ROLE_2_SI
public static final java.lang.String ANY_SI
public static final int COUNT_SINGLE
public static final int COUNT_ATMOSTONE
public static final int COUNT_ATLEASTONE
public static final int COUNT_MULTIPLE
public static boolean isInstanceOf(Topic topic, Topic cls) throws TopicMapException
TopicMapException
private static boolean isInstanceOf(Topic topic, Topic cls, java.util.Collection processed) throws TopicMapException
TopicMapException
public static java.util.Collection getInstancesOf(Topic topic) throws TopicMapException
TopicMapException
private static void getInstancesOf(Topic topic, java.util.Collection topics, java.util.Collection processed) throws TopicMapException
TopicMapException
public static Topic getRoleClass(Topic role) throws TopicMapException
TopicMapException
public static java.util.Collection getSubClassesOf(Topic topic) throws TopicMapException
TopicMapException
public static java.util.Collection getSubClassesOf(Topic topic, java.lang.String subSI, java.lang.String assocSI, java.lang.String superSI) throws TopicMapException
TopicMapException
public static java.util.Collection getSuperClassesOf(Topic topic) throws TopicMapException
TopicMapException
public static java.util.Collection getSuperClassesOf(Topic topic, java.lang.String subSI, java.lang.String assocSI, java.lang.String superSI) throws TopicMapException
TopicMapException
public static java.util.Collection getSuperClassesOfRecursive(Topic topic) throws TopicMapException
TopicMapException
private static void getSuperClassesOfRecursive(Topic topic, java.util.HashSet processed, java.util.HashSet classes) throws TopicMapException
TopicMapException
public static java.util.Collection getContentTypesOf(Topic topic) throws TopicMapException
TopicMapException
private static void getContentTypesOfNoSupers(Topic topic, java.util.Collection processed, java.util.Collection types, Topic contenttype) throws TopicMapException
TopicMapException
public static java.util.Collection getAssociationTypesFor(Topic topic) throws TopicMapException
getContentTypesOf
.TopicMapException
public static java.util.Collection getOccurrenceTypesFor(Topic topic) throws TopicMapException
getContentTypesOf
.TopicMapException
public static void setSuperClass(Topic subclass, Topic superclass) throws TopicMapException
TopicMapException
public static java.util.Collection getAssociationTypeRoles(Topic associationType) throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team