com.sun.tools.xjc.model
Class TypeUseFactory

java.lang.Object
  extended by com.sun.tools.xjc.model.TypeUseFactory

public final class TypeUseFactory
extends Object

Factory methods to create a new TypeUse from an existing one.


Method Summary
static TypeUse adapt(TypeUse t, CAdapter adapter)
           
static TypeUse adapt(TypeUse t, Class<? extends XmlAdapter> adapter, boolean copy)
          Creates a new adapter TypeUse by using the existing Adapter class.
static TypeUse makeCollection(TypeUse t)
           
static TypeUse makeID(TypeUse t, ID id)
           
static TypeUse makeMimeTyped(TypeUse t, javax.activation.MimeType mt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeID

public static TypeUse makeID(TypeUse t,
                             ID id)

makeMimeTyped

public static TypeUse makeMimeTyped(TypeUse t,
                                    javax.activation.MimeType mt)

makeCollection

public static TypeUse makeCollection(TypeUse t)

adapt

public static TypeUse adapt(TypeUse t,
                            CAdapter adapter)

adapt

public static TypeUse adapt(TypeUse t,
                            Class<? extends XmlAdapter> adapter,
                            boolean copy)
Creates a new adapter TypeUse by using the existing Adapter class.