Class: UnknownTypeElement
- Inherits:
-
ValueElement
- Object
- Element
- ValueElement
- UnknownTypeElement
- Defined in:
- lib/fxmlloader/real_elts.rb
Overview
Element representing an unknown type
Instance Attribute Summary
Attributes inherited from ValueElement
Attributes inherited from Element
#current, #eventHandlerAttributes, #instancePropertyAttributes, #lineNumber, #loadListener, #parent, #parentLoader, #staticPropertyAttributes, #staticPropertyElements, #value, #valueAdapter, #xmlStreamReader
Instance Method Summary collapse
- #constructValue ⇒ Object
-
#initialize ⇒ UnknownTypeElement
constructor
A new instance of UnknownTypeElement.
-
#processEndElement ⇒ Object
TODO: cleanup Map type representing an unknown value def UnknownValueMap extends AbstractMap<String, Object> def<?> items = ArrayList.new<Object>(); def<String, Object> values = HashMap.new<String, Object>();.
Methods inherited from ValueElement
#getListValue, #processAttribute, #processCharacters, #processStartElement, #processValue
Methods inherited from Element
#add, #addEventHandler, #applyProperty, #callz, #getProperties, #getValueAdapter, #isBidirectionalBindingExpression, #isBindingExpression, #isCollection, #isTyped, #populateArrayFromString, #populateListFromString, #processAttribute, #processCharacters, #processEventHandlerAttributes, #processInstancePropertyAttributes, #processPropertyAttribute, #processStartElement, #processValue3, #resolvePrefixedValue, #set, #staticLoad, #updateValue, #warnDeprecatedEscapeSequence
Constructor Details
#initialize ⇒ UnknownTypeElement
Returns a new instance of UnknownTypeElement.
140 141 142 |
# File 'lib/fxmlloader/real_elts.rb', line 140 def initialize() dputs "oh no...." end |
Instance Method Details
#constructValue ⇒ Object
179 180 181 |
# File 'lib/fxmlloader/real_elts.rb', line 179 def constructValue() return UnknownValueMap.new(); end |
#processEndElement ⇒ Object
TODO: cleanup Map type representing an unknown value def UnknownValueMap extends AbstractMap<String, Object> def<?> items = ArrayList.new<Object>(); def<String, Object> values = HashMap.new<String, Object>();
def get(Object key) if (key == nil) raise NullPointerException.new(); end
return (key == (java_class().getAnnotation(DefaultProperty.java_class).value())) ? items : values.get(key); end
def put(String key, Object value) if (key == nil) raise NullPointerException.new(); end
if (key == (java_class().getAnnotation(DefaultProperty.java_class).value())) raise IllegalArgumentException.new(); end
return values.put(key, value); end
def entrySet() return Collections.emptySet(); end end
175 176 177 |
# File 'lib/fxmlloader/real_elts.rb', line 175 def processEndElement() # No-op end |