Class: UnknownTypeElement

Inherits:
ValueElement show all
Defined in:
lib/fxmlloader/real_elts.rb

Overview

Element representing an unknown type

Instance Attribute Summary

Attributes inherited from ValueElement

#fx_id

Attributes inherited from Element

#current, #eventHandlerAttributes, #instancePropertyAttributes, #lineNumber, #loadListener, #parent, #parentLoader, #staticPropertyAttributes, #staticPropertyElements, #value, #valueAdapter, #xmlStreamReader

Instance Method Summary collapse

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

#initializeUnknownTypeElement

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

#constructValueObject



179
180
181
# File 'lib/fxmlloader/real_elts.rb', line 179

def constructValue()
  return UnknownValueMap.new();
end

#processEndElementObject

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