public class TLcdGDFMultiLevelTiledModelDecoder extends Object implements ILcdModelDecoder, ILcdInputStreamFactoryCapable
Constructor and Description |
---|
TLcdGDFMultiLevelTiledModelDecoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeSource(String aSourceName)
Checks whether this model decoder can decode the specified data source.
|
ILcdModel |
decode(String aSourceName)
Decodes the given source and returns a model, build from the decoded source.
|
String |
getDisplayName()
Returns a short, displayable name for the format that is decoded by this
ILcdModelDecoder . |
ILcdFilter |
getFeatureFilter()
Returns the feature filter used in this model decoder, or null if none is used.
|
ILcdGDFFeatureThemeMap |
getFeatureThemeMap()
Returns the ILcdGDFFeatureThemeMap used by this decoder.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the input stream factory that is used.
|
String[] |
getTextTypeCodes()
Returns the list of type codes whose attribute value is a pointer to a name record.
|
String[] |
getTimeDomainTypeCodes()
Returns the list of type codes whose attribute value is a pointer to a time domain record.
|
boolean |
isDecodeAttributes()
Returns true if the attribute decoding flag is set,
falseotherwise. |
boolean |
isDecodeComplexFeatures()
Returns true if the complex features decoding flag is set,
falseotherwise.
|
boolean |
isDecodeRelationships()
Returns true if the relationship decoding flag is set,
falseotherwise.
|
boolean |
isDecodeZCoordinate()
Returns true if the z coordinate decoding flag is set,
falseotherwise.
|
void |
setDecodeAttributes(boolean aDecodeAttributes)
Sets a flag indicating whether attributes should be decoded or not.
|
void |
setDecodeComplexFeatures(boolean aDecodeComplexFeatures)
Sets a flag indicating whether complex features should be decoded or not.
|
void |
setDecodeRelationships(boolean aDecodeRelationships)
Sets a flag indicating whether relationships should be decoded or not.
|
void |
setDecodeZCoordinate(boolean aDecodeZCoordinate)
Sets a flag indicating whether the Z value of coordinates should be taken into account or not.
|
void |
setFeatureFilter(ILcdFilter aFeatureFilter)
Sets a filter to select which features will be added to the decoded models and which not.
|
void |
setFeatureThemeMap(ILcdGDFFeatureThemeMap aFeatureThemeMap)
Sets the ILcdGDFFeatureThemeMap to be used by this decoder.
|
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Sets the factory that will create input streams from which models can be decoded.
|
void |
setTextTypeCodes(String[] aTextTypeCodes)
Sets the array of type codes whose attribute value is a pointer to a text record.
|
void |
setTimeDomainTypeCodes(String[] aTimeDomainTypeCodes)
Sets the array of type codes whose attribute value is a pointer to a time domain record.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aInputStreamFactory
- the factory that creates an input stream based on a source name.public ILcdInputStreamFactory getInputStreamFactory()
ILcdInputStreamFactoryCapable
getInputStreamFactory
in interface ILcdInputStreamFactoryCapable
public void setFeatureFilter(ILcdFilter aFeatureFilter)
aFeatureFilter
- the filter to apply, or null if no filter should be used.public ILcdFilter getFeatureFilter()
public void setFeatureThemeMap(ILcdGDFFeatureThemeMap aFeatureThemeMap)
aFeatureThemeMap
- the ILcdGDFFeatureThemeMap that is to be used by this
decoder.public ILcdGDFFeatureThemeMap getFeatureThemeMap()
public void setDecodeZCoordinate(boolean aDecodeZCoordinate)
aDecodeZCoordinate
- boolean indicating whether the Z value of coordinates should be
taken
into account or not.public boolean isDecodeZCoordinate()
public void setDecodeAttributes(boolean aDecodeAttributes)
aDecodeAttributes
- boolean indicating whether to decode attributes or not.public boolean isDecodeAttributes()
falseotherwise.
falseotherwise.
public void setDecodeRelationships(boolean aDecodeRelationships)
aDecodeRelationships
- boolean indicating whether to decode relationships or not.public boolean isDecodeRelationships()
public void setDecodeComplexFeatures(boolean aDecodeComplexFeatures)
aDecodeComplexFeatures
- boolean indicating whether to decode complex features or not.public boolean isDecodeComplexFeatures()
public void setTextTypeCodes(String[] aTextTypeCodes)
Description | Attribute Type Code |
---|---|
Official Name Prefix | OX |
Official Name Text | ON |
Alternate Name Text | AN |
Multi-media Attachment Name | MN |
Directional Prefix | DP |
Street Type Prefix | SX |
Official Street Name Text | OF |
Alternate Street Name TExt | AL |
Street Type Suffix | ST |
Directional Suffix | DS |
Pronunciation | PO |
Exit Number | EN |
Route Number | RN |
Route Number on Sign | RX |
Building Class Name | BC |
Destination Location | DL |
Other Textual Content on Traffic Sign | CT |
Brand Name | BA |
Place Name | PE |
Street Name | SN |
Telefax Number | TX |
Telephone Number | TL |
aTextTypeCodes
- array of type codes whose attribute value is a pointer to a text record.public String[] getTextTypeCodes()
public void setTimeDomainTypeCodes(String[] aTimeDomainTypeCodes)
Description | Attribute Type Code |
---|---|
Validity Period | VP |
Opening Record | OP |
aTimeDomainTypeCodes
- array of type codes whose attribute value is a pointer to a time
domain record.public String[] getTimeDomainTypeCodes()
public String getDisplayName()
ILcdModelDecoder
ILcdModelDecoder
.getDisplayName
in interface ILcdModelDecoder
ILcdModelDecoder
.public boolean canDecodeSource(String aSourceName)
ILcdModelDecoder
true
for a source name while decode
throws an exception for that same source name.
For performance reasons, we strongly recommend that this will only be a simple test. For example: check the file extension of a file, but not that the file exists or contains expected content.
canDecodeSource
in interface ILcdModelDecoder
aSourceName
- the data source to be verified; typically a file name or a URL.true
if this decoder can likely decode the data specified by the source name, false
otherwise.ILcdModelDecoder.decode(String)
,
ILcdModelDecoder.decodeModelMetadata(String)
public ILcdModel decode(String aSourceName) throws IOException
decode
in interface ILcdModelDecoder
aSourceName
- the source document to be decoded.IOException
- if the given source document cannot be (fully) read or is damaged.ILcdModelDecoder.canDecodeSource(String)