public interface AliasManager
Title: Object Mediation Framework
Description: Alias Manager interface.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
alias(SemanticType type)
Adds a
Semantic Type alias to the Alias Map. |
void |
alias(java.lang.String alias,
java.lang.Class type)
Adds a class to the Alias Map.
|
void |
aliasImmutableType(java.lang.Class type)
Adds an immutable class to the Alias Map.
|
void |
aliasImmutableType(SemanticType type)
Adds an immutable class to the Alias Map.
|
boolean |
isAliased(java.lang.Class type)
Checks if the specified class is already aliased.
|
boolean |
isAliased(java.lang.String alias)
Checks if the specified alias already exists.
|
boolean |
isClassAliased(java.lang.String className)
Checks if a class with the specified name is already aliased.
|
boolean |
isImmutableTypeAliased(java.lang.Class type)
Checks if the specified class is aliased as an immutable type.
|
java.util.List |
listAliases()
Returns a list of all aliases.
|
java.lang.String |
lookup(java.lang.Class type)
Returns the alias type name associated with the specified class.
|
java.lang.String |
lookup(java.lang.String alias)
Returns a name of the class associated with the specified alias.
|
java.lang.String |
resolveClass(java.lang.String className)
Resolves the name of this class to the alias type name.
|
void |
unalias(SemanticType type)
Removes this
Semantic Type from the alias Alias Map. |
void |
unalias(java.lang.String alias)
Removes the aliased type from the Alias Map.
|
boolean isAliased(java.lang.String alias)
alias
- the alias to be checked.true
if the specified alias already exists, false
otherwise.boolean isAliased(java.lang.Class type)
type
- the class to be checked.true
if the specified class is already aliased, false
otherwise.boolean isClassAliased(java.lang.String className)
className
- the name of class to be checked.true
if a class with the specified name is already aliased, false
otherwise.void alias(SemanticType type) throws FactoryManagerException
Semantic Type
alias to the Alias Map. Allows for full
control of any semantic types that are added, such as serial version id,
system types and so on. This method does not require the instantiation of
an aliased class.type
- the semantic type to be aliased.FactoryManagerException
- if the specified type is already aliased.void unalias(SemanticType type) throws FactoryManagerException
Semantic Type
from the alias Alias Map.
type
- the semantic type to be unaliased.FactoryManagerException
- if the specified type is not aliased or
if the specified type is a system type.void alias(java.lang.String alias, java.lang.Class type) throws FactoryManagerException
Semantic Type
object which is non-system
and contains an auto-generated serial version id.alias
- the alias to be added.type
- the class to be aliased.FactoryManagerException
- if the specified alias already exists or
if the specified type is already aliased.void aliasImmutableType(SemanticType type) throws FactoryManagerException
java.lang.String
or collections.type
- the semantic type to be aliased.FactoryManagerException
- if some error occurs.void aliasImmutableType(java.lang.Class type)
java.lang.String
or collections.type
- the class to be aliased.boolean isImmutableTypeAliased(java.lang.Class type)
type
- the class to be checked.true
if the specified class is aliased as an immutable type, false
otherwise.void unalias(java.lang.String alias) throws FactoryManagerException
alias
- the alias to be removed.FactoryManagerException
- if the specified alias does not exist or
if the specified type is a system type.java.lang.String lookup(java.lang.Class type)
type
- the specified class.null
if the class is not aliased.java.lang.String resolveClass(java.lang.String className)
className
- the specified class name.null
if the class is not aliased.java.lang.String lookup(java.lang.String alias)
alias
- the specified alias.null
if this alias does not exist.java.util.List listAliases()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.