![]() |
Bridges-Java-2.2
2.2.0
Bridges(JavaAPI)
|
Public Member Functions | |
| Element () | |
| Element (E val) | |
| Element (String label, E val) | |
| Element (Element< E > original) | |
| String | getIdentifier () |
| ElementVisualizer | getVisualizer () |
| void | setVisualizer (ElementVisualizer visualizer) |
| LinkVisualizer | getLinkVisualizer (Element< E > el) |
| String | getClassName () |
| int | compareTo (Element< E > e1) |
| boolean | equals (Element< E > e1) |
| String | getRepresentation () |
| String | getLabel () |
| void | setLabel (String label) |
| String | arrangeLabel (String label, int wordNumber) |
| E | getValue () |
| void | setValue (E value) |
| String | toString () |
Protected Member Functions | |
| String | getDataStructType () |
| void | validateVal (E value) |
Protected Member Functions inherited from bridges.base.DataStruct | |
| abstract String | getDataStructType () |
Additional Inherited Members | |
Protected Attributes inherited from bridges.base.DataStruct | |
| String | QUOTE = "\"" |
This is the Superclass Element with SLelement, DLelement, ArrayElement, TreeElement, BSTElement subclasses it contains the Element Visualizer object label field derived from the E (application data) value an object of E data type: integer, string, Tweet, Actor, Movie, EarthquakeTweet identifier field automatically generated
| generic | <E> |
| bridges.base.Element< E >.Element | ( | ) |
Element constructor creates an ElementVisualizer object sets a unique identifier for the current Element normally used from subclasses
| bridges.base.Element< E >.Element | ( | E | val | ) |
| bridges.base.Element< E >.Element | ( | String | label, |
| E | val | ||
| ) |
| bridges.base.Element< E >.Element | ( | Element< E > | original | ) |
performing deep copy of an element when needed
| original | the Element that is to be copied |
| String bridges.base.Element< E >.arrangeLabel | ( | String | label, |
| int | wordNumber | ||
| ) |
This method formats the label string using a predefine pattern (DIVIDE_KEY) and replaces the pattern with the string characters hold by the INSERT_STRING global variable
| label | |
| wordNumber | in very long strings in the case where the whitespace \s is chosen as a key the wordNumber can be set to replace the whitespace with a newline character \n at a given number of words (every second or third word) The default value is 0. In most situations we want to replace all patterns found. for more complex patterns the key must be changed like so "((John) (.+?))" returns "John firstWordAfterJohn": John writes, John doe, John eats etc. (\w) matches any word (\s) one white space (\s*) zero or more white spaces, (\s+) one or more |
| int bridges.base.Element< E >.compareTo | ( | Element< E > | e1 | ) |
Comparison between 2 elements
| e1 | the Element to compare this with |
| boolean bridges.base.Element< E >.equals | ( | Element< E > | e1 | ) |
This method compares 2 Elements
| e1 |
| String bridges.base.Element< E >.getClassName | ( | ) |
This method returns the name of the class
|
protected |
| String bridges.base.Element< E >.getIdentifier | ( | ) |
this method returns the element's unique identifier
| String bridges.base.Element< E >.getLabel | ( | ) |
This method returns the existing value of the label fields
| LinkVisualizer bridges.base.Element< E >.getLinkVisualizer | ( | Element< E > | el | ) |
| String bridges.base.Element< E >.getRepresentation | ( | ) |
Internal code for getting the properties of the Element object. It produces (without the spaces or newlines): { "name": "Some label", "other CSS properties like color": any_JSON_value }
| E bridges.base.Element< E >.getValue | ( | ) |
this method returns the value E for the current Element
| ElementVisualizer bridges.base.Element< E >.getVisualizer | ( | ) |
Returns the Element's visualizer object
| void bridges.base.Element< E >.setLabel | ( | String | label | ) |
This method sets the label
| label | the label to set |
| void bridges.base.Element< E >.setValue | ( | E | value | ) |
This method sets the value field to the E argument value
| value | the value to set |
| void bridges.base.Element< E >.setVisualizer | ( | ElementVisualizer | visualizer | ) |
This method sets the visualizer object for the current element object
| visualizer | the visualizer to set |
| String bridges.base.Element< E >.toString | ( | ) |
|
protected |
1.8.10