-
Notifications
You must be signed in to change notification settings - Fork 24
What is a Tag?
Elliot Ford edited this page May 7, 2015
·
9 revisions
Tags are used to represent internal state information (and these stored within a Taggable). These are intended to be used mainly by custom JALSE implementations (specifically Entity where type proxies cannot be cast to concrete classes).
Tags currently in use
The default JALSE implementations currently only use the following Tags:
- EntityType for marking an Entity as a type.
- Parent for keeping track of the parent EntityContainer ID.
What is a Taggable?
A Taggable is a Tag store providing read only access. This is so the Tags can be read and not manipulated as they represent state. See below for usage:
Taggable taggable = /* Some Taggable */
// Set to iterate through
Set<Tag> tags = taggable.getTags();
// Stream to process
Stream<Tag> tagStream = taggable.streamTags();TagTypeSet is a Set implementation that provides a means to manage Tags by type. This can be used to create your own Taggable implementation.
Check out the Example projects and Code snippets!
Getting Started
- Getting the latest release
- Building from source
- Example projects
- Code snippets
- How to contribute
- Have bugs or questions?
How To Use
- JALSE
- Entities
- Attributes
- Actions
- Tags
Misc