BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.abstracts.AbstractImplementation Class Referenceabstract
Inheritance diagram for org.turro.elephant.impl.abstracts.AbstractImplementation:
Collaboration diagram for org.turro.elephant.impl.abstracts.AbstractImplementation:

Public Member Functions

 AbstractImplementation ()
 
void setElement (IElement element)
 
void setConstructor (IConstructor constructor)
 
void setConfiguration (Element configuration)
 
KeyValueMap getAttributes ()
 
Long getLongAttribute (String key)
 

Protected Attributes

IElement iel
 
IConstructor constructor
 
Element configuration
 
Map attributes
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file AbstractImplementation.java.

Constructor & Destructor Documentation

◆ AbstractImplementation()

org.turro.elephant.impl.abstracts.AbstractImplementation.AbstractImplementation ( )

Creates a new instance of AbstractImplementation

Definition at line 42 of file AbstractImplementation.java.

Member Function Documentation

◆ getAttributes()

KeyValueMap org.turro.elephant.impl.abstracts.AbstractImplementation.getAttributes ( )

Definition at line 69 of file AbstractImplementation.java.

69  {
70  if(_attributes == null) {
71  _attributes = new KeyValueMap(attributes);
72  }
73  return _attributes;
74  }
Here is the caller graph for this function:

◆ getLongAttribute()

Long org.turro.elephant.impl.abstracts.AbstractImplementation.getLongAttribute ( String  key)

Definition at line 76 of file AbstractImplementation.java.

76  {
77  String value = (String) attributes.get(key);
78  return (Long) ObjectString.parseString(value, Long.class, true);
79  }
Here is the caller graph for this function:

◆ setConfiguration()

void org.turro.elephant.impl.abstracts.AbstractImplementation.setConfiguration ( Element  configuration)

Implements org.turro.elephant.context.IImplementation.

Definition at line 57 of file AbstractImplementation.java.

57  {
59  Element el;
60  Iterator it = configuration.getChildren("attrib").iterator();
61  while(it.hasNext()) {
62  el = (Element) it.next();
63  attributes.put(el.getAttributeValue("name"), el.getAttributeValue("value"));
64  }
65  }

◆ setConstructor()

void org.turro.elephant.impl.abstracts.AbstractImplementation.setConstructor ( IConstructor  constructor)

◆ setElement()

void org.turro.elephant.impl.abstracts.AbstractImplementation.setElement ( IElement  element)

Member Data Documentation

◆ attributes

Map org.turro.elephant.impl.abstracts.AbstractImplementation.attributes
protected

Definition at line 39 of file AbstractImplementation.java.

◆ configuration

Element org.turro.elephant.impl.abstracts.AbstractImplementation.configuration
protected

Definition at line 38 of file AbstractImplementation.java.

◆ constructor

IConstructor org.turro.elephant.impl.abstracts.AbstractImplementation.constructor
protected

Definition at line 37 of file AbstractImplementation.java.

◆ iel

IElement org.turro.elephant.impl.abstracts.AbstractImplementation.iel
protected

Definition at line 36 of file AbstractImplementation.java.


The documentation for this class was generated from the following file: