public class SimpleTagProvider extends java.lang.Object implements SimpleProviderInterface
CustomTagType
). This
is basically an identifier, and you can set the attributes of your tag type with configureTagType. Then, you
can associate your type with tag paths through configureTag.Constructor and Description |
---|
SimpleTagProvider(java.lang.String providerName) |
Modifier and Type | Method and Description |
---|---|
TagConfigSet |
browse(java.lang.String path,
boolean recursive)
Browses the tags under the specified path.
|
void |
configureProvider(ProviderConfiguration config)
Sets various properties of the provider.
|
void |
configureTag(java.lang.String path,
DataType dType,
ExtendedTagType tagType)
Deprecated.
|
void |
configureTag(TagConfiguration config) |
void |
configureTag(TagPath path,
DataType dType,
ExtendedTagType tagType) |
void |
configureTagType(ExtendedTagType tagType,
Flags editingFlags,
java.util.Set<TagProp> bindableProperties)
Deprecated.
|
java.lang.String |
getName() |
void |
registerWriteHandler(java.lang.String path,
WriteHandler handler)
|
void |
removeTag(java.lang.String path)
|
void |
setProviderMetaFlag(int flag,
boolean value)
Allows you to get a provider meta flag for this provider.
|
void |
shutdown() |
void |
startup(GatewayContext context) |
void |
updateValue(java.lang.String path,
java.lang.Object value,
Quality quality)
Updates the value of a tag, creating it if necessary.
|
void |
updateValue(java.lang.String path,
java.lang.Object value,
Quality quality,
java.util.Date timestamp) |
void |
updateValue(TagPath path,
QualifiedValue value)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerWriteHandler, removeTag, updateValue
public void startup(GatewayContext context) throws java.lang.Exception
java.lang.Exception
public void shutdown()
public java.lang.String getName()
public void configureProvider(ProviderConfiguration config)
SimpleProviderInterface
configureProvider
in interface SimpleProviderInterface
public void setProviderMetaFlag(int flag, boolean value)
TagProviderMeta
for information about the flags. For general use, this function is not necessary.flag
- value
- public void updateValue(java.lang.String path, java.lang.Object value, Quality quality)
SimpleProviderInterface
updateValue
in interface SimpleProviderInterface
public void updateValue(java.lang.String path, java.lang.Object value, Quality quality, java.util.Date timestamp)
updateValue
in interface SimpleProviderInterface
@Deprecated public void updateValue(TagPath path, QualifiedValue value)
path
- value
- @Deprecated public void configureTag(java.lang.String path, DataType dType, ExtendedTagType tagType)
configureTag
in interface SimpleProviderInterface
public void configureTag(TagPath path, DataType dType, ExtendedTagType tagType)
configureTag
in interface SimpleProviderInterface
public void configureTag(TagConfiguration config)
configureTag
in interface SimpleProviderInterface
public void removeTag(java.lang.String path)
removeTag
in interface SimpleProviderInterface
@Deprecated public void configureTagType(ExtendedTagType tagType, Flags editingFlags, java.util.Set<TagProp> bindableProperties)
configureTagType
in interface SimpleProviderInterface
tagType
- editingFlags
- bindableProperties
- public void registerWriteHandler(java.lang.String path, WriteHandler handler)
registerWriteHandler
in interface SimpleProviderInterface
public TagConfigSet browse(java.lang.String path, boolean recursive)
SimpleProviderInterface
browse
in interface SimpleProviderInterface