net.dpml.metro.tools
Class EntryDataType

java.lang.Object
  extended by net.dpml.metro.tools.ValueDataType
      extended by net.dpml.metro.tools.EntryDataType
All Implemented Interfaces:
PartReferenceBuilder, ValueBuilder

public class EntryDataType
extends ValueDataType
implements PartReferenceBuilder

A simple part datatype.

Version:
1.2.0
Author:
Digital Product Meta Library

Constructor Summary
EntryDataType()
           
 
Method Summary
 PartReference buildPartReference(ClassLoader classloader, Type type)
          Build a part reference.
 URI getBuilderURI()
          Return a uri identitifying the builder.
 String getKey()
          Return the key identifying the part that this builder is building.
 URI getPartHandlerURI()
          Return a urn identitifying the part handler for this builder.
 ValueDirective getValueDirective(ClassLoader classloader, Type type)
          Return the value directive.
 void setFeature(String feature)
          Set the feature that this directive references.
 void setKey(String key)
          Set the key that this directive qualifies.
 void setLookup(String spec)
          Set the lookup attribute value.
protected static URI setupURI(String spec)
          Utility function top create a static uri.
 void setValidate(boolean flag)
          Set the validation flag.
 
Methods inherited from class net.dpml.metro.tools.ValueDataType
buildValue, createValue, getClassname, getTargetClass, getValue, getValueBuilders, setClass, setMethod, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryDataType

public EntryDataType()
Method Detail

setKey

public void setKey(String key)
Set the key that this directive qualifies.

Parameters:
key - the context entry key

setLookup

public void setLookup(String spec)
Set the lookup attribute value.

Parameters:
spec - the service classname

setValidate

public void setValidate(boolean flag)
Set the validation flag.

Parameters:
flag - if false entry validation is disabled

setFeature

public void setFeature(String feature)
Set the feature that this directive references.

Parameters:
feature - the component feature

getBuilderURI

public URI getBuilderURI()
Return a uri identitifying the builder.

Returns:
the builder uri

getKey

public String getKey()
Return the key identifying the part that this builder is building.

Specified by:
getKey in interface PartReferenceBuilder
Returns:
the key

buildPartReference

public PartReference buildPartReference(ClassLoader classloader,
                                        Type type)
Build a part reference.

Specified by:
buildPartReference in interface PartReferenceBuilder
Parameters:
classloader - the classloader to use
type - the underlying component type
Returns:
the part reference

getPartHandlerURI

public URI getPartHandlerURI()
Return a urn identitifying the part handler for this builder.

Returns:
the part handler uri

getValueDirective

public ValueDirective getValueDirective(ClassLoader classloader,
                                        Type type)
Return the value directive.

Parameters:
classloader - the classloader to use
type - the underlying component type
Returns:
the value directive

setupURI

protected static URI setupURI(String spec)
Utility function top create a static uri.

Parameters:
spec - the uri spec
Returns:
the uri value