Voyager ORB

com.objectspace.lib.facets
Interface IFacets

All Known Implementing Classes:
Facets

public abstract interface IFacets

IFacets is the interface that allows access to an object's facets.

Version:
3.0

Method Summary
 java.lang.Object get(java.lang.String classname)
          Return a facet that implements the specified class.
 java.lang.Object[] getFacets()
          Return an array of the primary object's facets.
 java.lang.Object getPrimary()
          Return the primary object.
 java.lang.Object of(java.lang.String classname)
          Return a facet that implements the specified class.
 

Method Detail

get

public java.lang.Object get(java.lang.String classname)
Return a facet that implements the specified class. If no such facet is found, return null.
Parameters:
classname - The class of facet to get.

of

public java.lang.Object of(java.lang.String classname)
                    throws java.lang.ClassCastException
Return a facet that implements the specified class. If no such facet is found, add one automatically before returning it.
Parameters:
classname - The class of facet to get/add.
Throws:
java.lang.ClassCastException - The facet could not be found or added.

getPrimary

public java.lang.Object getPrimary()
Return the primary object.

getFacets

public java.lang.Object[] getFacets()
Return an array of the primary object's facets.

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240