eu.etaxonomy.cdm.io.tcsrdf
Class CdmSingleAttributeXmlMapperBase

java.lang.Object
  extended by eu.etaxonomy.cdm.io.common.mapping.CdmMapperBase
      extended by eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
          extended by eu.etaxonomy.cdm.io.common.mapping.CdmSingleAttributeMapperBase
              extended by eu.etaxonomy.cdm.io.tcsrdf.CdmSingleAttributeXmlMapperBase
All Implemented Interfaces:
IXmlMapper
Direct Known Subclasses:
CdmTextElementMapper, CdmUnclearMapper

public abstract class CdmSingleAttributeXmlMapperBase
extends CdmSingleAttributeMapperBase
implements IXmlMapper

Version:
1.0
Author:
a.mueller

Field Summary
protected  org.jdom.Namespace sourceNamespace
           
 
Fields inherited from class eu.etaxonomy.cdm.io.common.mapping.CdmSingleAttributeMapperBase
defaultValue
 
Constructor Summary
protected CdmSingleAttributeXmlMapperBase(String sourceElementString, org.jdom.Namespace sourceNamespace, String cdmAttributeString)
           
protected CdmSingleAttributeXmlMapperBase(String sourceElementString, String cdmAttributeString)
          Uses the Namespace of the parent Element
 
Method Summary
 String getDestinationAttribute()
           
 String getSourceElement()
           
 org.jdom.Namespace getSourceNamespace()
           
 org.jdom.Namespace getSourceNamespace(org.jdom.Element parentElement)
          Returns the namespace.
 boolean mapsSource(org.jdom.Content content, org.jdom.Element parentElement)
           
 String toString()
           
 
Methods inherited from class eu.etaxonomy.cdm.io.common.mapping.CdmSingleAttributeMapperBase
getDestinationAttributeList, getDestinationAttributes, getSourceAttribute, getSourceAttributeList, getSourceAttributes, getTypeClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceNamespace

protected org.jdom.Namespace sourceNamespace
Constructor Detail

CdmSingleAttributeXmlMapperBase

protected CdmSingleAttributeXmlMapperBase(String sourceElementString,
                                          org.jdom.Namespace sourceNamespace,
                                          String cdmAttributeString)
Parameters:
sourceElementString -
sourceNamespace -
cdmAttributeString -

CdmSingleAttributeXmlMapperBase

protected CdmSingleAttributeXmlMapperBase(String sourceElementString,
                                          String cdmAttributeString)
Uses the Namespace of the parent Element

Parameters:
sourceElementString -
cdmAttributeString -
Method Detail

getSourceElement

public String getSourceElement()

getDestinationAttribute

public String getDestinationAttribute()
Overrides:
getDestinationAttribute in class CdmSingleAttributeMapperBase

getSourceNamespace

public org.jdom.Namespace getSourceNamespace()

getSourceNamespace

public org.jdom.Namespace getSourceNamespace(org.jdom.Element parentElement)
Returns the namespace. If namespace is null, return parentElement namespace

Parameters:
parentElement -
Returns:

mapsSource

public boolean mapsSource(org.jdom.Content content,
                          org.jdom.Element parentElement)
Specified by:
mapsSource in interface IXmlMapper
Returns:

toString

public String toString()
Overrides:
toString in class CdmAttributeMapperBase


Copyright © 2007-2013 EDIT. All Rights Reserved.