Class: OdfCore::Element::AbstractElement
- Inherits:
-
Object
- Object
- OdfCore::Element::AbstractElement
show all
- Defined in:
- lib/odf_core/element/abstract_element.rb
Direct Known Subclasses
OdfCore::Element::Anim::Animate, OdfCore::Element::Anim::AnimateColor, OdfCore::Element::Anim::AnimateMotion, OdfCore::Element::Anim::AnimateTransform, OdfCore::Element::Anim::Audio, OdfCore::Element::Anim::Command, OdfCore::Element::Anim::Iterate, OdfCore::Element::Anim::Par, OdfCore::Element::Anim::Param, OdfCore::Element::Anim::Seq, OdfCore::Element::Anim::Set, OdfCore::Element::Anim::TransitionFilter, Chart::Axis, Chart::Categories, Chart::Chart, Chart::DataLabel, Chart::DataPoint, Chart::Domain, Chart::Equation, Chart::ErrorIndicator, Chart::Floor, Chart::Footer, Chart::Grid, Chart::LabelSeparator, Chart::Legend, Chart::MeanValue, Chart::PlotArea, Chart::RegressionCurve, Chart::Series, Chart::StockGainMarker, Chart::StockLossMarker, Chart::StockRangeLine, Chart::Subtitle, Chart::SymbolImage, Chart::Title, Chart::Wall, Config::ConfigItem, Config::ConfigItemMapEntry, Config::ConfigItemMapIndexed, Config::ConfigItemMapNamed, Config::ConfigItemSet, Db::ApplicationConnectionSettings, Db::AutoIncrement, Db::CharacterSet, Db::Column, Db::ColumnDefinition, Db::ColumnDefinitions, Db::Columns, Db::Component, Db::ComponentCollection, Db::ConnectionData, Db::ConnectionResource, Db::DataSource, Db::DataSourceSetting, Db::DataSourceSettingValue, Db::DataSourceSettings, Db::DatabaseDescription, Db::Delimiter, Db::DriverSettings, Db::FileBasedDatabase, Db::FilterStatement, Db::Forms, Db::Index, Db::IndexColumn, Db::IndexColumns, Db::Indices, Db::Key, Db::KeyColumn, Db::KeyColumns, Db::Keys, Db::Login, Db::OrderStatement, Db::Queries, Db::Query, Db::QueryCollection, Db::Reports, Db::SchemaDefinition, Db::ServerDatabase, Db::TableDefinition, Db::TableDefinitions, Db::TableExcludeFilter, Db::TableFilter, Db::TableFilterPattern, Db::TableIncludeFilter, Db::TableRepresentation, Db::TableRepresentations, Db::TableSetting, Db::TableSettings, Db::TableType, Db::TableTypeFilter, Db::UpdateTable, Dc::Creator, Dc::Date, Dc::Description, Dc::Language, Dc::Subject, Dc::Title, Dr3d::Cube, Dr3d::Extrude, Dr3d::Light, Dr3d::Rotate, Dr3d::Scene, Dr3d::Sphere, Draw::A, Draw::Applet, Draw::AreaCircle, Draw::AreaPolygon, Draw::AreaRectangle, Draw::Caption, Draw::Circle, Draw::Connector, Draw::ContourPath, Draw::ContourPolygon, Draw::Control, Draw::CustomShape, Draw::Ellipse, Draw::EnhancedGeometry, Draw::Equation, Draw::FillImage, Draw::FloatingFrame, Draw::Frame, Draw::G, Draw::GluePoint, Draw::Gradient, Draw::Handle, Draw::Hatch, Draw::Image, Draw::ImageMap, Draw::Layer, Draw::LayerSet, Draw::Line, Draw::Marker, Draw::Measure, Draw::Object, Draw::ObjectOle, Draw::Opacity, Draw::Page, Draw::PageThumbnail, Draw::Param, Draw::Path, Draw::Plugin, Draw::Polygon, Draw::Polyline, Draw::Rect, Draw::RegularPolygon, Draw::StrokeDash, Draw::TextBox, Form::Button, Form::Checkbox, Form::Column, Form::Combobox, Form::ConnectionResource, Form::Date, Form::File, Form::FixedText, Form::Form, Form::FormattedText, Form::Frame, Form::GenericControl, Form::Grid, Form::Hidden, Form::Image, Form::ImageFrame, Form::Item, Form::ListProperty, Form::ListValue, Form::Listbox, Form::Number, Form::Option, Form::Password, Form::Properties, Form::Property, Form::Radio, Form::Text, Form::Textarea, Form::Time, Form::ValueRange, Math::Math, Meta::AutoReload, Meta::CreationDate, Meta::DateString, Meta::DocumentStatistic, Meta::EditingCycles, Meta::EditingDuration, Meta::Generator, Meta::HyperlinkBehaviour, Meta::InitialCreator, Meta::Keyword, Meta::PrintDate, Meta::PrintedBy, Meta::Template, Meta::UserDefined, Number::AmPm, Number::Boolean, Number::BooleanStyle, Number::CurrencyStyle, Number::CurrencySymbol, Number::DateStyle, Number::Day, Number::DayOfWeek, Number::EmbeddedText, Number::Era, Number::Fraction, Number::Hours, Number::Minutes, Number::Month, Number::Number, Number::NumberStyle, Number::PercentageStyle, Number::Quarter, Number::ScientificNumber, Number::Seconds, Number::Text, Number::TextContent, Number::TextStyle, Number::TimeStyle, Number::WeekOfYear, Number::Year, Office::Annotation, Office::AnnotationEnd, Office::AutomaticStyles, Office::BinaryData, Office::Body, Office::ChangeInfo, Office::Chart, Office::Database, Office::DdeSource, Office::Document, Office::DocumentContent, Office::DocumentMeta, Office::DocumentSettings, Office::DocumentStyles, Office::Drawing, Office::EventListeners, Office::FontFaceDecls, Office::Forms, Office::Image, Office::MasterStyles, Office::Meta, Office::Presentation, Office::Script, Office::Scripts, Office::Settings, Office::Spreadsheet, Office::Styles, Office::Text, Presentation::AnimationGroup, Presentation::Animations, Presentation::DateTime, Presentation::DateTimeDecl, Presentation::Dim, Presentation::EventListener, Presentation::Footer, Presentation::FooterDecl, Presentation::Header, Presentation::HeaderDecl, Presentation::HideShape, Presentation::HideText, Presentation::Notes, Presentation::Placeholder, Presentation::Play, Presentation::Settings, Presentation::Show, Presentation::ShowShape, Presentation::ShowText, Presentation::Sound, Script::EventListener, Style::BackgroundImage, Style::ChartProperties, Style::Column, Style::ColumnSep, Style::Columns, Style::DefaultPageLayout, Style::DefaultStyle, Style::DrawingPageProperties, Style::DropCap, Style::FontFace, Style::Footer, Style::FooterLeft, Style::FooterStyle, Style::FootnoteSep, Style::GraphicProperties, Style::HandoutMaster, Style::Header, Style::HeaderFooterProperties, Style::HeaderLeft, Style::HeaderStyle, Style::ListLevelLabelAlignment, Style::ListLevelProperties, Style::Map, Style::MasterPage, Style::PageLayout, Style::PageLayoutProperties, Style::ParagraphProperties, Style::PresentationPageLayout, Style::RegionCenter, Style::RegionLeft, Style::RegionRight, Style::RubyProperties, Style::SectionProperties, Style::Style, Style::TabStop, Style::TabStops, Style::TableCellProperties, Style::TableColumnProperties, Style::TableProperties, Style::TableRowProperties, Style::TextProperties, Svg::DefinitionSrc, Svg::Desc, Svg::FontFaceFormat, Svg::FontFaceName, Svg::FontFaceSrc, Svg::FontFaceUri, Svg::LinearGradient, Svg::RadialGradient, Svg::Stop, Svg::Title, Table::Background, Table::Body, Table::CalculationSettings, Table::CellAddress, Table::CellContentChange, Table::CellContentDeletion, Table::CellRangeSource, Table::ChangeDeletion, Table::ChangeTrackTableCell, Table::Consolidation, Table::ContentValidation, Table::ContentValidations, Table::CoveredTableCell, Table::CutOffs, Table::DataPilotDisplayInfo, Table::DataPilotField, Table::DataPilotFieldReference, Table::DataPilotGroup, Table::DataPilotGroupMember, Table::DataPilotGroups, Table::DataPilotLayoutInfo, Table::DataPilotLevel, Table::DataPilotMember, Table::DataPilotMembers, Table::DataPilotSortInfo, Table::DataPilotSubtotal, Table::DataPilotSubtotals, Table::DataPilotTable, Table::DataPilotTables, Table::DatabaseRange, Table::DatabaseRanges, Table::DatabaseSourceQuery, Table::DatabaseSourceSql, Table::DatabaseSourceTable, Table::DdeLink, Table::DdeLinks, Table::Deletion, Table::Deletions, Table::Dependencies, Table::Dependency, Table::Desc, Table::Detective, Table::ErrorMacro, Table::ErrorMessage, Table::EvenColumns, Table::EvenRows, Table::Filter, Table::FilterAnd, Table::FilterCondition, Table::FilterOr, Table::FilterSetItem, Table::FirstColumn, Table::FirstRow, Table::HelpMessage, Table::HighlightedRange, Table::Insertion, Table::InsertionCutOff, Table::Iteration, Table::LabelRange, Table::LabelRanges, Table::LastColumn, Table::LastRow, Table::Movement, Table::MovementCutOff, Table::NamedExpression, Table::NamedExpressions, Table::NamedRange, Table::NullDate, Table::OddColumns, Table::OddRows, Table::Operation, Table::Previous, Table::Scenario, Table::Shapes, Table::Sort, Table::SortBy, Table::SortGroups, Table::SourceCellRange, Table::SourceRangeAddress, Table::SourceService, Table::SubtotalField, Table::SubtotalRule, Table::SubtotalRules, Table::Table, Table::TableCell, Table::TableColumn, Table::TableColumnGroup, Table::TableColumns, Table::TableHeaderColumns, Table::TableHeaderRows, Table::TableRow, Table::TableRowGroup, Table::TableRows, Table::TableSource, Table::TableTemplate, Table::TargetRangeAddress, Table::Title, Table::TrackedChanges, Text::A, Text::AlphabeticalIndex, Text::AlphabeticalIndexAutoMarkFile, Text::AlphabeticalIndexEntryTemplate, Text::AlphabeticalIndexMark, Text::AlphabeticalIndexMarkEnd, Text::AlphabeticalIndexMarkStart, Text::AlphabeticalIndexSource, Text::AuthorInitials, Text::AuthorName, Text::Bibliography, Text::BibliographyConfiguration, Text::BibliographyEntryTemplate, Text::BibliographyMark, Text::BibliographySource, Text::Bookmark, Text::BookmarkEnd, Text::BookmarkRef, Text::BookmarkStart, Text::Change, Text::ChangeEnd, Text::ChangeStart, Text::ChangedRegion, Text::Chapter, Text::CharacterCount, Text::ConditionalText, Text::CreationDate, Text::CreationTime, Text::Creator, Text::DatabaseDisplay, Text::DatabaseName, Text::DatabaseNext, Text::DatabaseRowNumber, Text::DatabaseRowSelect, Text::Date, Text::DdeConnection, Text::DdeConnectionDecl, Text::DdeConnectionDecls, Text::Deletion, Text::Description, Text::EditingCycles, Text::EditingDuration, Text::ExecuteMacro, Text::Expression, Text::FileName, Text::FormatChange, Text::H, Text::HiddenParagraph, Text::HiddenText, Text::IllustrationIndex, Text::IllustrationIndexEntryTemplate, Text::IllustrationIndexSource, Text::ImageCount, Text::IndexBody, Text::IndexEntryBibliography, Text::IndexEntryChapter, Text::IndexEntryLinkEnd, Text::IndexEntryLinkStart, Text::IndexEntryPageNumber, Text::IndexEntrySpan, Text::IndexEntryTabStop, Text::IndexEntryText, Text::IndexSourceStyle, Text::IndexSourceStyles, Text::IndexTitle, Text::IndexTitleTemplate, Text::InitialCreator, Text::Insertion, Text::Keywords, Text::LineBreak, Text::LinenumberingConfiguration, Text::LinenumberingSeparator, Text::List, Text::ListHeader, Text::ListItem, Text::ListLevelStyleBullet, Text::ListLevelStyleImage, Text::ListLevelStyleNumber, Text::ListStyle, Text::Measure, Text::Meta, Text::MetaField, Text::ModificationDate, Text::ModificationTime, Text::Note, Text::NoteBody, Text::NoteCitation, Text::NoteContinuationNoticeBackward, Text::NoteContinuationNoticeForward, Text::NoteRef, Text::NotesConfiguration, Text::Number, Text::NumberedParagraph, Text::ObjectCount, Text::ObjectIndex, Text::ObjectIndexEntryTemplate, Text::ObjectIndexSource, Text::OutlineLevelStyle, Text::OutlineStyle, Text::P, Text::Page, Text::PageContinuation, Text::PageCount, Text::PageNumber, Text::PageSequence, Text::PageVariableGet, Text::PageVariableSet, Text::ParagraphCount, Text::Placeholder, Text::PrintDate, Text::PrintTime, Text::PrintedBy, Text::ReferenceMark, Text::ReferenceMarkEnd, Text::ReferenceMarkStart, Text::ReferenceRef, Text::Ruby, Text::RubyBase, Text::RubyText, Text::S, Text::Script, Text::Section, Text::SectionSource, Text::SenderCity, Text::SenderCompany, Text::SenderCountry, Text::SenderEmail, Text::SenderFax, Text::SenderFirstname, Text::SenderInitials, Text::SenderLastname, Text::SenderPhonePrivate, Text::SenderPhoneWork, Text::SenderPosition, Text::SenderPostalCode, Text::SenderStateOrProvince, Text::SenderStreet, Text::SenderTitle, Text::Sequence, Text::SequenceDecl, Text::SequenceDecls, Text::SequenceRef, Text::SheetName, Text::SoftPageBreak, Text::SortKey, Text::Span, Text::Subject, Text::Tab, Text::TableCount, Text::TableFormula, Text::TableIndex, Text::TableIndexEntryTemplate, Text::TableIndexSource, Text::TableOfContent, Text::TableOfContentEntryTemplate, Text::TableOfContentSource, Text::TemplateName, Text::TextInput, Text::Time, Text::Title, Text::TocMark, Text::TocMarkEnd, Text::TocMarkStart, Text::TrackedChanges, Text::UserDefined, Text::UserFieldDecl, Text::UserFieldDecls, Text::UserFieldGet, Text::UserFieldInput, Text::UserIndex, Text::UserIndexEntryTemplate, Text::UserIndexMark, Text::UserIndexMarkEnd, Text::UserIndexMarkStart, Text::UserIndexSource, Text::VariableDecl, Text::VariableDecls, Text::VariableGet, Text::VariableInput, Text::VariableSet, Text::WordCount, Xforms::Model
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of AbstractElement.
21
22
23
24
|
# File 'lib/odf_core/element/abstract_element.rb', line 21
def initialize
@children = []
@attributes = {}
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
19
20
21
|
# File 'lib/odf_core/element/abstract_element.rb', line 19
def attributes
@attributes
end
|
#children ⇒ Object
Returns the value of attribute children.
19
20
21
|
# File 'lib/odf_core/element/abstract_element.rb', line 19
def children
@children
end
|
Class Method Details
.attributes ⇒ Object
10
11
12
|
# File 'lib/odf_core/element/abstract_element.rb', line 10
def attributes
self::ATTRIBUTES
end
|
.children ⇒ Object
6
7
8
|
# File 'lib/odf_core/element/abstract_element.rb', line 6
def children
self::CHILDREN
end
|
.xml_element_name ⇒ Object
14
15
16
|
# File 'lib/odf_core/element/abstract_element.rb', line 14
def xml_element_name
self::XML_ELEMENT_NAME
end
|
Instance Method Details
#<<(element) ⇒ Object
26
27
28
29
30
|
# File 'lib/odf_core/element/abstract_element.rb', line 26
def <<(element)
check_child_element!(element)
@children << element
end
|
#[](attribute_name) ⇒ Object
38
39
40
|
# File 'lib/odf_core/element/abstract_element.rb', line 38
def [](attribute_name)
@attributes[attribute_name]
end
|
#[]=(attribute_name, attribute_value) ⇒ Object
32
33
34
35
36
|
# File 'lib/odf_core/element/abstract_element.rb', line 32
def []=(attribute_name, attribute_value)
check_attribute!(attribute_name)
@attributes[attribute_name] = attribute_value
end
|