net.dpml.metro.tools
Class PartDataType

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by net.dpml.metro.tools.PartDataType
All Implemented Interfaces:
PartReferenceBuilder

public class PartDataType
extends Task
implements PartReferenceBuilder

Task that handles the construction of a serialized container part.

Version:
1.1.3
Author:
Digital Product Meta Library

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
PartDataType()
           
 
Method Summary
 PartReference buildPartReference(ClassLoader classloader, Type type)
          Build the part reference.
 URI getBuilderURI()
          Return a uri identitifying the builder.
 String getKey()
          Return the part key.
 URI getPartHandlerURI()
          Return a urn identitifying the part handler for this builder.
 URI getURI()
          Return the part uri.
 void setKey(String key)
          Set the part key.
protected static URI setupURI(String spec)
          Internal utility to create a station uri.
 void setUri(URI uri)
          Set the part uri.
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartDataType

public PartDataType()
Method Detail

setUri

public void setUri(URI uri)
Set the part uri.

Parameters:
uri - the part uri

setKey

public void setKey(String key)
Set the part key.

Parameters:
key - the key

getBuilderURI

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

Returns:
the builder uri

getPartHandlerURI

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

Returns:
a strategy uri

getKey

public String getKey()
Return the part key.

Specified by:
getKey in interface PartReferenceBuilder
Returns:
the key

getURI

public URI getURI()
Return the part uri.

Returns:
the uri

buildPartReference

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

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

setupURI

protected static URI setupURI(String spec)
Internal utility to create a station uri.

Parameters:
spec - the uri spec
Returns:
the uri