NetKernel APIs


com.ten60.netkernel.urii
Interface IURRepresentation

All Known Subinterfaces:
IComponent, IURAccessor
All Known Implementing Classes:
AccessorImpl, AccessorImpl, ComponentImpl, MonoRepresentationImpl, MonoRepresentationImpl, MultiRepresentationImpl, NKFAccessorImpl, SimpleRepresentationImpl, SimpleRepresentationImpl

public interface IURRepresentation

An IURRepresentationInterface is an object that acts as a representation for data pertaining to a URI. A representation is fundamentally immutable from its API. It exhibits a IURMeta which gives meta data such as typing and validity. It also exhibits a set (usually with one value) of other application interfaces. This interfaces are dependent upon what the representation is a representation for.


Method Summary
 IURAspect getAspect(Class aAspectClass)
          Return the first aspect which implements the given interface class
 Collection getAspects()
          Return a collection of all unique aspects that this representation exhibits
 IURMeta getMeta()
          Return the meta for this representation
 boolean hasAspect(Class aAspectClass)
          Return true if this representation can return an aspect which implements the given interface
 

Method Detail

getMeta

public IURMeta getMeta()
Return the meta for this representation

Returns:
the meta for this representation

hasAspect

public boolean hasAspect(Class aAspectClass)
Return true if this representation can return an aspect which implements the given interface

Parameters:
aAspectClass - a IURAspect class object for an aspect to test for
Returns:
true if any of the aspects which this representation holds implement the given interface

getAspect

public IURAspect getAspect(Class aAspectClass)
Return the first aspect which implements the given interface class

Returns:
the aspect, null if none is found

getAspects

public Collection getAspects()
Return a collection of all unique aspects that this representation exhibits


NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.