org.compass.core.mapping.osem
Interface HasRefAliasMapping

All Superinterfaces:
Mapping, ObjectMapping, OsemMapping
All Known Implementing Classes:
AbstractRefAliasMapping, ComponentMapping, IdComponentMapping, ReferenceMapping

public interface HasRefAliasMapping
extends ObjectMapping

Author:
kimchy

Method Summary
 String[] getRefAliases()
           
 Class getRefClass()
           
 ClassMapping getRefClassMapping(String alias)
           
 ClassMapping[] getRefClassMappings()
           
 boolean hasAtLeastOneRefAlias(String[] refAliases)
           
 boolean hasRefAlias(String refAlias)
           
 void setRefAliases(String[] refAliases)
           
 void setRefClass(Class refClass)
          Sets a reference class which will be used if no ref aliases are explicitly defined using setRefAliases(String[]) to identify the alias.
 void setRefClassMappings(ClassMapping[] refClassMapping)
           
 
Methods inherited from interface org.compass.core.mapping.osem.ObjectMapping
canBeCollectionWrapped, getAccessor, getDefinedInAlias, getGetter, getPropertyName, getSetter, setAccessor, setDefinedInAlias, setGetter, setPropertyName, setSetter
 
Methods inherited from interface org.compass.core.mapping.osem.OsemMapping
hasAccessors
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Method Detail

hasRefAlias

boolean hasRefAlias(String refAlias)

hasAtLeastOneRefAlias

boolean hasAtLeastOneRefAlias(String[] refAliases)

getRefClassMapping

ClassMapping getRefClassMapping(String alias)

getRefAliases

String[] getRefAliases()

setRefAliases

void setRefAliases(String[] refAliases)

getRefClassMappings

ClassMapping[] getRefClassMappings()

setRefClassMappings

void setRefClassMappings(ClassMapping[] refClassMapping)

getRefClass

Class getRefClass()

setRefClass

void setRefClass(Class refClass)
Sets a reference class which will be used if no ref aliases are explicitly defined using setRefAliases(String[]) to identify the alias.



Copyright (c) 2004-2008 The Compass Project.