Package com.gengoai
Class StringTag
- java.lang.Object
-
- com.gengoai.StringTag
-
- All Implemented Interfaces:
Tag
,Serializable
public class StringTag extends Object implements Tag, Serializable
A tag which is represented as a string. Care must be taken in that different string variations will represent different tags.
- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInstance(Tag tag)
Determines if this tag is an instance of a given tag.String
name()
The name of the tag.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.gengoai.Tag
isInstance, label, parent
-
-
-
-
Constructor Detail
-
StringTag
public StringTag(String tag)
Default Constructor- Parameters:
tag
- The tag name
-
-
Method Detail
-
isInstance
public boolean isInstance(Tag tag)
Description copied from interface:Tag
Determines if this tag is an instance of a given tag.- Specified by:
isInstance
in interfaceTag
- Parameters:
tag
- The given tag to check if this one is an instance of- Returns:
- True if this tag is an instance of the given tag
-
-