com.arsdigita.domain
Class DomainServiceInterfaceExposer

java.lang.Object
  extended bycom.arsdigita.domain.DomainService
      extended bycom.arsdigita.domain.DomainServiceInterfaceExposer
Direct Known Subclasses:
GenericDomainService

public class DomainServiceInterfaceExposer
extends DomainService

Exposes all methods in DomainService.

Version:
$Id: //core-platform/dev/src/com/arsdigita/domain/DomainServiceInterfaceExposer.java#13 $
Author:
Stanislav Freidin, Gavin Doughtie

Field Summary
static String versionId
           
 
Constructor Summary
DomainServiceInterfaceExposer()
           
 
Method Summary
static DataObject add(DomainObject domainObject, String roleName, DataObject value)
          Adds data object specified by value to the specified role (with multiplicity>1) of the specified domain object.
static DataObject add(DomainObject domainObject, String roleName, DomainObject value)
          Adds domain object specified by value to the specified role (with multiplicity>1) of the specified domain object.
static void clear(DomainObject domainObject, String roleName)
          Clears specified role (with multiplicity > 1) of specified domain object.
static Object get(DomainObject domainObject, String attr)
          Get a property of the specified domain object.
static DataCollection getDataCollection(DomainCollection domainCollection)
          Get the data collection encapsulated by a domain collection.
static DataObject getDataObject(DomainObject domainObject)
          Get the underlying DataObject of the DomainObject
static void remove(DomainObject domainObject, String roleName, DataObject value)
          Removes data object specified by value from the specified role (with multiplicity>1) of the specified domain object.
static void remove(DomainObject domainObject, String roleName, DomainObject value)
          Removes domain object specified by value from the specified role (with multiplicity>1) of the specified domain object.
static void set(DomainObject domainObject, String attr, Object value)
          Set a property of the DomainObjects DataObject.
static void setAssociation(DomainObject domainObject, String attr, DomainObject dobj)
          Set an association DomainObjects DataObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DomainServiceInterfaceExposer

public DomainServiceInterfaceExposer()
Method Detail

get

public static Object get(DomainObject domainObject,
                         String attr)
Get a property of the specified domain object.

See Also:
DomainObject.get(String)

getDataObject

public static DataObject getDataObject(DomainObject domainObject)
Get the underlying DataObject of the DomainObject


getDataCollection

public static DataCollection getDataCollection(DomainCollection domainCollection)
Get the data collection encapsulated by a domain collection.

See Also:
DomainObject.get(String)

set

public static void set(DomainObject domainObject,
                       String attr,
                       Object value)
Set a property of the DomainObjects DataObject.

See Also:
DomainObject.set(String, Object)

setAssociation

public static void setAssociation(DomainObject domainObject,
                                  String attr,
                                  DomainObject dobj)
Set an association DomainObjects DataObject.

See Also:
DomainObject.set(String, Object)

add

public static DataObject add(DomainObject domainObject,
                             String roleName,
                             DataObject value)
Adds data object specified by value to the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.add(String, DataObject)

add

public static DataObject add(DomainObject domainObject,
                             String roleName,
                             DomainObject value)
Adds domain object specified by value to the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.add(String, DomainObject)

remove

public static void remove(DomainObject domainObject,
                          String roleName,
                          DataObject value)
Removes data object specified by value from the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.remove(String, DataObject)

remove

public static void remove(DomainObject domainObject,
                          String roleName,
                          DomainObject value)
Removes domain object specified by value from the specified role (with multiplicity>1) of the specified domain object.

See Also:
DomainObject.remove(String, DomainObject)

clear

public static void clear(DomainObject domainObject,
                         String roleName)
Clears specified role (with multiplicity > 1) of specified domain object.

See Also:
DomainObject.clear(String)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC