public interface SemanticTypeCache
Title: Structured Data Objects
Description: Defines a cache that contains all Semantic Types.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
boolean |
existsSemanticClass(java.lang.Class semanticClass)
Checks if a semantic type associated with the specified class exists.
|
boolean |
existsSemanticClass(java.lang.String className)
Checks if a semantic type associated with the specified class exists.
|
boolean |
existsSemanticType(java.lang.String typeName)
Checks if a semantic with the specified name exists.
|
java.util.Map |
getAncestorTree()
Returns a tree of ancestors for all semantic types.
|
java.util.Map |
getUserAncestorTree()
Returns a tree of ancestors for user-defined semantic types.
|
boolean |
isSemanticTypeDependsOn(java.lang.String typeName,
java.lang.String targetTypeName)
Checks if the specified semantic type depends on the target semantic type.
|
java.util.List |
listComponentSemanticTypes(java.lang.String typeName)
Returns a sorted list of semantic types that are part of the specified type.
|
java.util.List |
listDependentSemanticTypes(java.lang.String typeName)
Returns a sorted list of all semantic types that depend on the specified type.
|
java.util.List |
listDependentUserSemanticTypes(java.lang.String typeName)
Returns a sorted list of all user-defined semantic types that depend on the specified type.
|
java.util.List |
listSemanticTypes()
Returns a sorted list of all semantic types.
|
java.util.List |
listSemanticTypesByAncestor(java.lang.String ancestorName)
Returns a sorted list of all semantic types by the specified ancestor.
|
java.util.List |
listUserSemanticTypes()
Returns a sorted list of all user-defined semantic types.
|
java.util.List |
listUserSemanticTypesByAncestor(java.lang.String ancestorName)
Returns a sorted list of all user-defined semantic types by the specified ancestor.
|
SemanticType |
lookupSemanticClass(java.lang.Class semanticClass)
Returns a copy of semantic type associated with the specified class.
|
SemanticType |
lookupSemanticClass(java.lang.String className)
Returns a copy of semantic type associated with the specified class.
|
SemanticType |
lookupSemanticType(java.lang.String typeName)
Returns a copy of semantic type with the specified name.
|
java.lang.String |
resolveSemanticClass(java.lang.Class semanticClass)
Returns a name of the semantic type associated with the specified class.
|
java.lang.String |
resolveSemanticClass(java.lang.String className)
Returns a name of the semantic type associated with the specified class.
|
java.lang.String |
resolveSemanticType(java.lang.String typeName)
Returns a name of the class associated with the specified semantic type.
|
boolean existsSemanticType(java.lang.String typeName)
typeName
- the name of semantic type to be checked.true
if the corresponding semantic type exists, false
otherwise.boolean existsSemanticClass(java.lang.Class semanticClass)
semanticClass
- the class to be checked.true
if the corresponding semantic type exists, false
otherwise.boolean existsSemanticClass(java.lang.String className)
className
- the name of class to be checked.true
if the corresponding semantic type exists, false
otherwise.SemanticType lookupSemanticType(java.lang.String typeName)
typeName
- the name of semantic type to be found.null
if the type is not found.SemanticType lookupSemanticClass(java.lang.Class semanticClass)
semanticClass
- the class associated with a type to be found.null
if the type is not found.SemanticType lookupSemanticClass(java.lang.String className)
className
- the name of class associated with a type to be found.null
if the type is not found.java.lang.String resolveSemanticType(java.lang.String typeName)
typeName
- the name of specified semantic type.java.lang.String resolveSemanticClass(java.lang.Class semanticClass)
semanticClass
- the specified class.java.lang.String resolveSemanticClass(java.lang.String className)
className
- the name of specified class.java.util.List listSemanticTypes()
java.util.List listSemanticTypesByAncestor(java.lang.String ancestorName)
ancestorName
- the specified ancestor name.java.util.List listUserSemanticTypes()
java.util.List listUserSemanticTypesByAncestor(java.lang.String ancestorName)
ancestorName
- the specified ancestor name.java.util.List listComponentSemanticTypes(java.lang.String typeName)
typeName
- the name of specified semantic type.java.util.List listDependentSemanticTypes(java.lang.String typeName)
typeName
- the name of specified semantic type.java.util.List listDependentUserSemanticTypes(java.lang.String typeName)
typeName
- the name of specified semantic type.boolean isSemanticTypeDependsOn(java.lang.String typeName, java.lang.String targetTypeName)
false
.typeName
- the name of specified semantic type.targetTypeName
- the name of target semantic type.true
if the specified semantic type depends on the target semantic type, false
otherwise.java.util.Map getAncestorTree()
java.util.Map getUserAncestorTree()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.