Class FeatureTemplate
- java.lang.Object
-
- de.julielab.jcore.reader.xmlmapper.genericTypes.TypeTemplate
-
- de.julielab.jcore.reader.xmlmapper.genericTypes.FeatureTemplate
-
public class FeatureTemplate extends TypeTemplate
Represents a Template for a Feature which contains all necessary Informations to build a concrete Type.- Author:
- Weigel
-
-
Field Summary
-
Fields inherited from class de.julielab.jcore.reader.xmlmapper.genericTypes.TypeTemplate
additionalData, externalParser, features, fullClassName, inlineAnnotation, multipleInstances, parser, partOfDocuments, xPaths
-
-
Constructor Summary
Constructors Constructor Description FeatureTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVauleMapping(String xmlElement, String value)Adds a ValueMapping to the TemplateFeatureTemplateclone()StringgetMappedValue(String xmlElement)returns a mapped Value for a spezific value from the xmlStringgetTsName()Map<String,String>getValueMap()booleanisType()voidsetTsName(String tsName)voidsetType(boolean type)can mark the feature as a type.voidsetValueMap(HashMap<String,String> valueMapping)StringtoString()-
Methods inherited from class de.julielab.jcore.reader.xmlmapper.genericTypes.TypeTemplate
addAdditionalData, addFeature, addPartOfDocumentText, addXPath, getAdditionalData, getFeatures, getFullClassName, getOffsetPartIDs, getParser, getXPaths, isInlineAnnotation, isMultipleInstances, setFeatures, setFullClassName, setInlineAnnotation, setMultipleInstances, setParser
-
-
-
-
Method Detail
-
addVauleMapping
public void addVauleMapping(String xmlElement, String value)
Adds a ValueMapping to the Template- Parameters:
xmlElement-value-
-
setValueMap
public void setValueMap(HashMap<String,String> valueMapping)
- Parameters:
valueMapping- the valueMapping to set
-
getMappedValue
public String getMappedValue(String xmlElement)
returns a mapped Value for a spezific value from the xml- Parameters:
xmlElement-- Returns:
- a mapped Valu
-
setType
public void setType(boolean type)
can mark the feature as a type.- Parameters:
type-
-
isType
public boolean isType()
- Returns:
- wheter this feature is a Type or not
-
toString
public String toString()
- Overrides:
toStringin classTypeTemplate
-
getTsName
public String getTsName()
- Returns:
- the tsName
-
setTsName
public void setTsName(String tsName)
- Parameters:
tsName- the tsName to set
-
clone
public FeatureTemplate clone()
- Overrides:
clonein classTypeTemplate
-
-