public class BindingMappingDetail
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private MappingElement |
m_abstractMapping
Abstract mapping definition (
null if none). |
private MappingElementBase |
m_concreteMapping
Concrete mapping definition (
null if none). |
private QName |
m_elementQName
Concrete mapping element name (
null if none). |
private java.lang.String |
m_extendsType
Concrete mapping type extended by this one.
|
private boolean |
m_isExtended
Flag for class extended by other mapped class(es).
|
private boolean |
m_isGenerated
Flag for mapping(s) has been generated.
|
private java.util.Map |
m_propertyMethodMap
Map from access method name to property customization information for properties covered by this mapping
(including inherited ones).
|
private java.lang.String |
m_type
Fully-qualified class name of mapped class.
|
private QName |
m_typeQName
Abstract mapping type name (
null if none). |
private boolean |
m_useAbstract
Generate abstract mapping flag.
|
private boolean |
m_useConcrete
Generate concrete mapping flag.
|
Modifier | Constructor and Description |
---|---|
protected |
BindingMappingDetail(java.lang.String type,
QName aname,
QName cname,
java.lang.String stype)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MappingElement |
getAbstractMapping()
Get the abstract <mapping> for the target class.
|
java.util.Map |
getAccessMethodMap()
Get map from access method name to property customization information for properties covered by this
<mapping>.
|
MappingElementBase |
getConcreteMapping()
Get the concrete <mapping> for the target class.
|
QName |
getElementQName()
Get the element name used for a concrete mapping.
|
java.lang.String |
getExtendsType()
Get the fully-qualified class name of the type extended by this <mapping>.
|
java.lang.String |
getType()
Get fully-qualified name of mapped class.
|
QName |
getTypeQName()
Get the type name used for an abstract mapping.
|
boolean |
isExtended()
Check for target class extended by other mapped class(es).
|
boolean |
isGenerated()
Check if this <mapping> has been generated.
|
boolean |
isUseAbstract()
Check if an abstract <mapping> used for this class.
|
boolean |
isUseConcrete()
Check if a concrete <mapping> used for this class.
|
void |
setAbstractMapping(MappingElement abs)
Set the abstract <mapping> for the target class.
|
void |
setAccessMethodMap(java.util.Map map)
Set map from access method name to property customization information for properties covered by this
<mapping>.
|
void |
setConcreteMapping(MappingElementBase con)
Set the concrete <mapping> for the target class.
|
void |
setElementQName(QName qname)
Set the element name used for a concrete mapping.
|
void |
setExtended(boolean ext)
Set target class extended by other mapped class(es).
|
void |
setGenerated(boolean gen)
Set flag for <mapping> generated.
|
void |
setUseAbstract(boolean abs)
Set flag for abstract <mapping> used for this class.
|
void |
setUseConcrete(boolean con)
Set flag for concrete <mapping> used for this class.
|
private final java.lang.String m_type
private boolean m_useAbstract
private boolean m_useConcrete
private boolean m_isExtended
private final QName m_typeQName
null
if none).private QName m_elementQName
null
if none).private java.lang.String m_extendsType
private java.util.Map m_propertyMethodMap
private boolean m_isGenerated
private MappingElement m_abstractMapping
null
if none).private MappingElementBase m_concreteMapping
null
if none).protected BindingMappingDetail(java.lang.String type, QName aname, QName cname, java.lang.String stype)
type
- fully-qualified mapped class nameaname
- abstract mapping type namecname
- concrete mapping element namestype
- superclass for extension (null
if not an extension mapping)public java.lang.String getType()
public MappingElement getAbstractMapping()
null
if nonepublic void setAbstractMapping(MappingElement abs)
abs
- abstract null
if nonepublic MappingElementBase getConcreteMapping()
null
if nonepublic void setConcreteMapping(MappingElementBase con)
con
- concrete null
if nonepublic boolean isExtended()
true
if extended, false
if notpublic void setExtended(boolean ext)
true
forces a concrete
<mapping> to be used.ext
- public boolean isGenerated()
true
if generated, false
if notpublic void setGenerated(boolean gen)
gen
- public boolean isUseAbstract()
true
if abstract mapping used, false
if notpublic void setUseAbstract(boolean abs)
abs
- true
if abstract mapping used, false
if notpublic boolean isUseConcrete()
true
if concrete mapping used, false
if notpublic void setUseConcrete(boolean con)
con
- true
if concrete mapping used, false
if notpublic QName getElementQName()
null
result if a concrete mapping is being used, but may also return a non-null
result even if there is no concrete mapping - so check first using the isUseConcrete()
method.null
if not definedpublic void setElementQName(QName qname)
qname
- element name, or null
if not definedpublic java.lang.String getExtendsType()
null
if nonepublic QName getTypeQName()
null
result if an abstract mapping is being used, but may also return a non-null
result even if there is
no abstract mapping - so check first using the isUseConcrete()
method.null
if not definedpublic java.util.Map getAccessMethodMap()
null
after <mapping> constructed)public void setAccessMethodMap(java.util.Map map)
map
- (non-null
, use empty map if not applicable)