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.
557 558 559 560 561 562 563 564 565 |
# File 'lib/fxmlloader/real_elts.rb', line 557 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
567 568 569 |
# File 'lib/fxmlloader/real_elts.rb', line 567 def isCollection() return false; end |
#processCharacters ⇒ Object
575 576 577 578 579 580 581 |
# File 'lib/fxmlloader/real_elts.rb', line 575 def processCharacters() text = xmlStreamReader.getText(); # TODO: REGEX! text = extraneousWhitespacePattern.matcher(text).replaceAll(" "); updateValue(text.strip()); end |
#set(value) ⇒ Object
571 572 573 |
# File 'lib/fxmlloader/real_elts.rb', line 571 def set( value) updateValue(value); end |