SMILA (incubation) API documentation

org.eclipse.smila.datamodel.tools
Class MObjectHelper

java.lang.Object
  extended by org.eclipse.smila.datamodel.tools.MObjectHelper

public final class MObjectHelper
extends java.lang.Object

Connectivity MObject Helper.


Method Summary
static void addLiteralArrayAttribute(RecordFactory factory, MObject mObject, java.lang.String attributeName, java.lang.Object[] values)
          Adds the list of literals to attribute.
static void addNameValuePairsAttribute(RecordFactory factory, MObject mObject, java.lang.String attributeName, NameValuePair[] nameValuePairs)
          Adds the MObject containing attributes with names and literal values from given NameValuePairs array.
static void addSimpleLiteralAttribute(RecordFactory factory, MObject mObject, java.lang.String attributeName, java.lang.Object attributeValue)
          Adds simple literal attribute.
static java.lang.String glueLiterals(Attribute recordAttribute)
          Glue literals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addSimpleLiteralAttribute

public static void addSimpleLiteralAttribute(RecordFactory factory,
                                             MObject mObject,
                                             java.lang.String attributeName,
                                             java.lang.Object attributeValue)
                                      throws InvalidTypeException
Adds simple literal attribute.

Parameters:
factory - the record factory
mObject - the m object
attributeName - the attribute name
attributeValue - the attribute value
Throws:
InvalidTypeException - the invalid type exception

addLiteralArrayAttribute

public static void addLiteralArrayAttribute(RecordFactory factory,
                                            MObject mObject,
                                            java.lang.String attributeName,
                                            java.lang.Object[] values)
                                     throws InvalidTypeException
Adds the list of literals to attribute.

Parameters:
factory - the factory
mObject - the m object
attributeName - the attribute name
values - the values
Throws:
InvalidTypeException - the invalid type exception

addNameValuePairsAttribute

public static void addNameValuePairsAttribute(RecordFactory factory,
                                              MObject mObject,
                                              java.lang.String attributeName,
                                              NameValuePair[] nameValuePairs)
                                       throws InvalidTypeException
Adds the MObject containing attributes with names and literal values from given NameValuePairs array.

Parameters:
factory - the factory
mObject - the m object
attributeName - the attribute name
nameValuePairs - the name value pairs
Throws:
InvalidTypeException - InvalidTypeException

glueLiterals

public static java.lang.String glueLiterals(Attribute recordAttribute)
Glue literals.

Parameters:
recordAttribute - the record attribute
Returns:
the string

SMILA (incubation) API documentation