public class ObjectMediationAliasManager extends com.streamscape.omf.serializer.AliasManagerImpl implements SemanticTypeCache, AliasManager
Title: Object Mediation Framework
Description: Implements AliasManager
and SemanticTypeCache
interfaces.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
ObjectMediationAliasManager() |
ObjectMediationAliasManager(ClassLoaderProvider classLoaderProvider) |
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.
|
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.
|
alias, alias, aliasImmutableType, aliasImmutableType, getAncestorTree, getUserAncestorTree, isAliased, isAliased, isClassAliased, isImmutableTypeAliased, isInstanceOfAncestor, listAliases, lookup, lookup, resolveClass, unalias, unalias
clone, getSerialVersionUID
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAncestorTree, getUserAncestorTree
alias, alias, aliasImmutableType, aliasImmutableType, isAliased, isAliased, isClassAliased, isImmutableTypeAliased, listAliases, lookup, lookup, resolveClass, unalias, unalias
public ObjectMediationAliasManager()
public ObjectMediationAliasManager(ClassLoaderProvider classLoaderProvider)
public SemanticType lookupSemanticType(java.lang.String typeName)
SemanticTypeCache
lookupSemanticType
in interface SemanticTypeCache
lookupSemanticType
in class com.streamscape.omf.serializer.AliasManagerImpl
typeName
- the name of semantic type to be found.null
if the type is not found.public SemanticType lookupSemanticClass(java.lang.Class semanticClass)
SemanticTypeCache
lookupSemanticClass
in interface SemanticTypeCache
lookupSemanticClass
in class com.streamscape.omf.serializer.AliasManagerImpl
semanticClass
- the class associated with a type to be found.null
if the type is not found.public SemanticType lookupSemanticClass(java.lang.String className)
SemanticTypeCache
lookupSemanticClass
in interface SemanticTypeCache
lookupSemanticClass
in class com.streamscape.omf.serializer.AliasManagerImpl
className
- the name of class associated with a type to be found.null
if the type is not found.public boolean existsSemanticType(java.lang.String typeName)
SemanticTypeCache
existsSemanticType
in interface SemanticTypeCache
typeName
- the name of semantic type to be checked.true
if the corresponding semantic type exists, false
otherwise.public boolean existsSemanticClass(java.lang.Class semanticClass)
SemanticTypeCache
existsSemanticClass
in interface SemanticTypeCache
semanticClass
- the class to be checked.true
if the corresponding semantic type exists, false
otherwise.public boolean existsSemanticClass(java.lang.String className)
SemanticTypeCache
existsSemanticClass
in interface SemanticTypeCache
className
- the name of class to be checked.true
if the corresponding semantic type exists, false
otherwise.public java.util.List listSemanticTypes()
SemanticTypeCache
listSemanticTypes
in interface SemanticTypeCache
public java.lang.String resolveSemanticType(java.lang.String typeName)
SemanticTypeCache
resolveSemanticType
in interface SemanticTypeCache
typeName
- the name of specified semantic type.public java.lang.String resolveSemanticClass(java.lang.Class semanticClass)
SemanticTypeCache
resolveSemanticClass
in interface SemanticTypeCache
semanticClass
- the specified class.public java.lang.String resolveSemanticClass(java.lang.String className)
SemanticTypeCache
resolveSemanticClass
in interface SemanticTypeCache
className
- the name of specified class.public java.util.List listSemanticTypesByAncestor(java.lang.String ancestorName)
SemanticTypeCache
listSemanticTypesByAncestor
in interface SemanticTypeCache
ancestorName
- the specified ancestor name.public java.util.List listUserSemanticTypesByAncestor(java.lang.String ancestorName)
SemanticTypeCache
listUserSemanticTypesByAncestor
in interface SemanticTypeCache
ancestorName
- the specified ancestor name.public java.util.List listUserSemanticTypes()
SemanticTypeCache
listUserSemanticTypes
in interface SemanticTypeCache
public java.util.List listComponentSemanticTypes(java.lang.String typeName)
SemanticTypeCache
listComponentSemanticTypes
in interface SemanticTypeCache
typeName
- the name of specified semantic type.public java.util.List listDependentSemanticTypes(java.lang.String typeName)
SemanticTypeCache
listDependentSemanticTypes
in interface SemanticTypeCache
typeName
- the name of specified semantic type.public java.util.List listDependentUserSemanticTypes(java.lang.String typeName)
SemanticTypeCache
listDependentUserSemanticTypes
in interface SemanticTypeCache
typeName
- the name of specified semantic type.public boolean isSemanticTypeDependsOn(java.lang.String typeName, java.lang.String targetTypeName)
SemanticTypeCache
false
.isSemanticTypeDependsOn
in interface SemanticTypeCache
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.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.