public class AttributeMapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AttributeMapper.Mapping<T extends AttributeValue>
Mapping of an attribute to its value.
|
Modifier and Type | Field and Description |
---|---|
protected Map<Attribute<?>,Set<AttributeValue>> |
allAttributes |
protected static char |
COMMENT_CHAR |
protected Map<String,AttributeMapper.Mapping<?>> |
mappings |
Constructor and Description |
---|
AttributeMapper(LineNumberReader mapping)
Initializes a new mapping from dictionary-specific names to attribute/value objects by
reading the configuration from a reader.
|
Modifier and Type | Method and Description |
---|---|
Map<Attribute<?>,Set<AttributeValue>> |
getAttributes() |
AttributeMapper.Mapping<?> |
getMapping(String name)
Return the mapping for the dictionary-specific name.
|
protected static final char COMMENT_CHAR
protected Map<String,AttributeMapper.Mapping<?>> mappings
protected Map<Attribute<?>,Set<AttributeValue>> allAttributes
public AttributeMapper(LineNumberReader mapping) throws IOException
IOException
public AttributeMapper.Mapping<?> getMapping(String name)
null
if there
is no such mapping.public Map<Attribute<?>,Set<AttributeValue>> getAttributes()
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.