Class TagProviderMetaImpl
java.lang.Object
com.inductiveautomation.ignition.common.sqltags.TagProviderMetaImpl
- All Implemented Interfaces:
TagProviderMeta
,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.sqltags.model.TagProviderMeta
FLAG_HAS_DRIVERS, FLAG_HAS_OPCBROWSE, FLAG_HAS_SCANCLASSES, FLAG_IS_DATABASE, FLAG_IS_DEFAULT, FLAG_IS_INTERNAL, FLAG_IS_RUNTIME_STATUS, FLAG_IS_SYSTEM, FLAG_PROVIDES_COMPLEX_TYPES, FLAG_SUPPORTS_HISTORY
-
Constructor Summary
ConstructorsConstructorDescriptionTagProviderMetaImpl
(String name, String desc) TagProviderMetaImpl
(String name, String desc, Collection<TagMeta> acceptedTypes) Creates a new TagProviderMetaTagProviderMetaImpl
(String name, String desc, Collection<TagMeta> acceptedTypes, Flags flags) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAcceptTag
(ExtendedTagType type) clearFlag
(int flag) combine
(TagProviderMeta other) Returns the tag metas of tag types that can be added to the provider.Generally equal to the name, the display path can contain forward-slash ("/") separated components to create a folder hierarchy in the display.getFlags()
getName()
The name of the provider, as it will be used in tag paths.getTagMeta
(ExtendedTagType type) Returns all tag types that might be present in this provider.boolean
Whether or not this provider has ScanClasses.boolean
Whether the provider supports multiple drivers.intersect
(TagProviderMeta other) Creates an intersection between tag provider metas.boolean
isFlagSet
(int flag) boolean
isSystem()
protected String
void
registerTypeType
(TagMeta meta) void
setDisplayPath
(String value) setFlag
(int flag) void
setFlag
(int flag, boolean b) setFlags
(int... flags) boolean
toString()
-
Constructor Details
-
TagProviderMetaImpl
-
TagProviderMetaImpl
Creates a new TagProviderMeta- Parameters:
name
- The name of this provider. This name is the "source" element of all tag paths in this provider. If the name contains "/", it will be used as the display path, and the last portion will be used for the name.
-
TagProviderMetaImpl
public TagProviderMetaImpl(String name, String desc, Collection<TagMeta> acceptedTypes, Flags flags)
-
-
Method Details
-
getName
Description copied from interface:TagProviderMeta
The name of the provider, as it will be used in tag paths. Must not contain illegal characters like '/'.- Specified by:
getName
in interfaceTagProviderMeta
-
getDisplayPath
Description copied from interface:TagProviderMeta
Generally equal to the name, the display path can contain forward-slash ("/") separated components to create a folder hierarchy in the display.- Specified by:
getDisplayPath
in interfaceTagProviderMeta
-
setDisplayPath
-
getDescription
- Specified by:
getDescription
in interfaceTagProviderMeta
-
isFlagSet
public boolean isFlagSet(int flag) - Specified by:
isFlagSet
in interfaceTagProviderMeta
-
setFlag
public void setFlag(int flag, boolean b) -
setFlag
-
setFlags
-
clearFlag
-
getFlags
- Specified by:
getFlags
in interfaceTagProviderMeta
-
isSystem
public boolean isSystem()- Specified by:
isSystem
in interfaceTagProviderMeta
-
supportsEditRoles
public boolean supportsEditRoles()- Specified by:
supportsEditRoles
in interfaceTagProviderMeta
-
hasSubDrivers
public boolean hasSubDrivers()Description copied from interface:TagProviderMeta
Whether the provider supports multiple drivers. Example: the legacy provider, which can have any number of FSQLs driving it.- Specified by:
hasSubDrivers
in interfaceTagProviderMeta
-
hasScanClasses
public boolean hasScanClasses()Description copied from interface:TagProviderMeta
Whether or not this provider has ScanClasses. Some providers, built-in ones for example, may not support scan classes- Specified by:
hasScanClasses
in interfaceTagProviderMeta
-
toString
-
keyFor
-
getTagMeta
- Specified by:
getTagMeta
in interfaceTagProviderMeta
-
canAcceptTag
- Specified by:
canAcceptTag
in interfaceTagProviderMeta
-
registerTypeType
-
getCreatableTagTypes
Description copied from interface:TagProviderMeta
Returns the tag metas of tag types that can be added to the provider. If empty, the provider does not support new tags.- Specified by:
getCreatableTagTypes
in interfaceTagProviderMeta
-
getTagTypes
Description copied from interface:TagProviderMeta
Returns all tag types that might be present in this provider.- Specified by:
getTagTypes
in interfaceTagProviderMeta
-
intersect
Description copied from interface:TagProviderMeta
Creates an intersection between tag provider metas. The returned meta will represent multiple providers, and will contain the common tag types and provider flags.- Specified by:
intersect
in interfaceTagProviderMeta
-
combine
- Specified by:
combine
in interfaceTagProviderMeta
-