|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tm4j.topicmap.utils.LTMBuilder
Field Summary |
Fields inherited from interface org.tm4j.topicmap.utils.TopicMapBuilder |
OPTION_ADDED_THEMES |
Constructor Summary | |
LTMBuilder()
|
|
LTMBuilder(TopicMap baseTM)
|
|
LTMBuilder(TopicMapProvider provider)
|
Method Summary | |
void |
build(java.io.InputStream src,
Locator srcLoc,
TopicMap baseTM)
Build topic map constructs from the specified source stream. |
void |
build(java.io.InputStream src,
Locator srcLoc,
TopicMap tm,
Topic[] addedThemes)
Build topic map constructs from the specified source stream. |
void |
build(java.io.InputStream src,
Locator srcLoc,
TopicMap baseTM,
TopicMapProvider provider)
Build topic map constructs from the specified source stream. |
void |
build(java.io.InputStream src,
Locator srcLoc,
TopicMap tm,
TopicMapProvider provider,
Topic[] addedThemes)
|
void |
build(java.io.Reader src,
Locator srcLoc,
TopicMap baseTM)
Build topic map constructs from the specified Reader. |
void |
build(java.io.Reader source,
Locator base,
TopicMap existing,
Topic[] addedThemes)
|
void |
build(java.io.Reader src,
Locator srcLoc,
TopicMap baseTM,
TopicMapProvider provider)
Build topic map constructs from the specified Reader. |
void |
build(java.io.Reader source,
Locator base,
TopicMap existing,
TopicMapProvider provider,
Topic[] addedThemes)
|
IDGenerator |
getIDGenerator()
Returns the IDGenerator used by this LTMBuilder. |
boolean |
isSupportedProperty(java.lang.String propertyName)
Determines whether or not a specific property is supported by the TopicMapBuilder implementation. |
TopicMap |
read(java.io.File src)
|
void |
setIDGenerator(IDGenerator idgen)
Sets the IDGenerator used by this LTMBuilder (and its LTMParser). |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Set a configuration property for the builder which will be applied to the processing of subsequent invocations of the build()
method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LTMBuilder(TopicMapProvider provider)
public LTMBuilder(TopicMap baseTM)
public LTMBuilder()
Method Detail |
public void setIDGenerator(IDGenerator idgen)
public IDGenerator getIDGenerator()
public boolean isSupportedProperty(java.lang.String propertyName)
TopicMapBuilder
isSupportedProperty
in interface TopicMapBuilder
propertyName
- the name of the property to check for support.
true
if the property is supported and false
otherwise.public void setProperty(java.lang.String propertyName, java.lang.Object value) throws BuilderPropertyNotRecognizedException
TopicMapBuilder
build()
method. A typical use of this method will be to set parser options prior
to parsing the input stream.
setProperty
in interface TopicMapBuilder
propertyName
- the name of the property to be set. See inidividual
implementation classes for details of which properties
are recognized by each implementation.value
- the value to be applied to the property.
BuilderPropertyNotRecognizedException
- if propertyName
specifies a property which is not supported by the
TopicMapBuilder implementation.public void build(java.io.InputStream src, Locator srcLoc, TopicMap baseTM, TopicMapProvider provider) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
TopicMapBuilder
build
in interface TopicMapBuilder
src
- the source stream to be parsed.srcLoc
- the base address of the source being parsedbaseTM
- the topic map for parsed objects to be added to.provider
- the provider to be used for retrieving any merged topic maps.
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public void build(java.io.InputStream src, Locator srcLoc, TopicMap baseTM) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
TopicMapBuilder
build
in interface TopicMapBuilder
src
- the source stream to be parsed.srcLoc
- the base address of the source being parsedbaseTM
- the topic map for parsed objects to be added to.
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public void build(java.io.Reader src, Locator srcLoc, TopicMap baseTM, TopicMapProvider provider) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
TopicMapBuilder
build
in interface TopicMapBuilder
src
- the Reader to be parsed.srcLoc
- the base address of the source being parsedbaseTM
- the topic map for parsed objects to be added to.provider
- the provider to be used for retrieving any merged topic maps.
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public void build(java.io.Reader src, Locator srcLoc, TopicMap baseTM) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
TopicMapBuilder
build
in interface TopicMapBuilder
src
- the Reader to be parsed.srcLoc
- the base address of the source being parsedbaseTM
- the topic map for parsed objects to be added to.
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public TopicMap read(java.io.File src) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public void build(java.io.InputStream src, Locator srcLoc, TopicMap tm, Topic[] addedThemes) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
TopicMapBuilder
build
in interface TopicMapBuilder
src
- the source stream to be parsed.srcLoc
- the base address of the source being parsedtm
- the topic map for parsed objects to be added to.
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public void build(java.io.Reader source, Locator base, TopicMap existing, Topic[] addedThemes) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
build
in interface TopicMapBuilder
source
- base
- existing
- addedThemes
-
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public void build(java.io.InputStream src, Locator srcLoc, TopicMap tm, TopicMapProvider provider, Topic[] addedThemes) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
build
in interface TopicMapBuilder
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
public void build(java.io.Reader source, Locator base, TopicMap existing, TopicMapProvider provider, Topic[] addedThemes) throws java.io.IOException, LocatorFactoryException, TopicMapProcessingException, java.beans.PropertyVetoException, TopicMapProviderException
build
in interface TopicMapBuilder
java.io.IOException
LocatorFactoryException
TopicMapProcessingException
java.beans.PropertyVetoException
TopicMapProviderException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |