Class: UnknownStaticPropertyElement
- Defined in:
- lib/fxmlloader/real_elts.rb
Overview
Element representing an unknown static property
Instance Attribute Summary
Attributes inherited from Element
#current, #eventHandlerAttributes, #instancePropertyAttributes, #lineNumber, #loadListener, #parent, #parentLoader, #staticPropertyAttributes, #staticPropertyElements, #value, #valueAdapter, #xmlStreamReader
Instance Method Summary collapse
-
#initialize ⇒ UnknownStaticPropertyElement
constructor
A new instance of UnknownStaticPropertyElement.
- #isCollection ⇒ Object
- #processCharacters ⇒ Object
- #set(value) ⇒ Object
Methods inherited from Element
#add, #addEventHandler, #applyProperty, #callz, #getProperties, #getValueAdapter, #isBidirectionalBindingExpression, #isBindingExpression, #isTyped, #populateArrayFromString, #populateListFromString, #processAttribute, #processEndElement, #processEventHandlerAttributes, #processInstancePropertyAttributes, #processPropertyAttribute, #processStartElement, #processValue3, #resolvePrefixedValue, #staticLoad, #updateValue, #warnDeprecatedEscapeSequence
Constructor Details
#initialize ⇒ UnknownStaticPropertyElement
Returns a new instance of UnknownStaticPropertyElement.
543 544 545 546 547 548 549 550 551 |
# File 'lib/fxmlloader/real_elts.rb', line 543 def initialize if (parent == nil) raise LoadException.new("Invalid root element."); end if (parent.value == nil) raise LoadException.new("Parent element does not support property elements."); end end |
Instance Method Details
#isCollection ⇒ Object
553 554 555 |
# File 'lib/fxmlloader/real_elts.rb', line 553 def isCollection() return false; end |
#processCharacters ⇒ Object
561 562 563 564 565 566 567 |
# File 'lib/fxmlloader/real_elts.rb', line 561 def processCharacters() text = xmlStreamReader.getText(); # TODO: REGEX! text = extraneousWhitespacePattern.matcher(text).replaceAll(" "); updateValue(text.strip()); end |
#set(value) ⇒ Object
557 558 559 |
# File 'lib/fxmlloader/real_elts.rb', line 557 def set( value) updateValue(value); end |