Extension SDK

oracle.jdeveloper.model
Class Tag2Children

java.lang.Object
  extended byoracle.jdeveloper.model.Tag2Children
All Implemented Interfaces:
oracle.ide.marshal.tag.TagConverter

public abstract class Tag2Children
extends java.lang.Object
implements oracle.ide.marshal.tag.TagConverter

The Tag2Children is an abstract class that should be extended extended by converters that need to process project children that are owned by other containers included in the project. The method processChildren should be implemented to add the owned children to the project object. Note that implementors should only add the owned children to the project. All other project children should be ignored.


Constructor Summary
Tag2Children()
           
 
Method Summary
protected  Node createNode(java.net.URL url, oracle.ide.marshal.tag.Tag2Object t2o)
          Use this method to create the Node pointed to by the specified URL.
protected  java.net.URL getElementURL(oracle.ide.marshal.tag.TagElement element, java.net.URL docParentURL)
          This method retrieves the fully qualified URL from the specified element.
protected  boolean processChildren(oracle.ide.marshal.tag.TagElement element, JProject project, java.net.URL docURLParent, oracle.ide.marshal.tag.Tag2Object t2o)
          This method is reponsible for adding the owned children to the project object.
 boolean toElement(java.lang.Object object, oracle.ide.marshal.tag.TagElement element, oracle.ide.marshal.tag.Tag2Object t2o)
          Not supported.
 boolean toObject(java.lang.Object object, oracle.ide.marshal.tag.TagElement element, oracle.ide.marshal.tag.Tag2Object t2o)
          Initialize the JProject object from the specified element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tag2Children

public Tag2Children()
Method Detail

toElement

public boolean toElement(java.lang.Object object,
                         oracle.ide.marshal.tag.TagElement element,
                         oracle.ide.marshal.tag.Tag2Object t2o)
Not supported.

Specified by:
toElement in interface oracle.ide.marshal.tag.TagConverter

toObject

public boolean toObject(java.lang.Object object,
                        oracle.ide.marshal.tag.TagElement element,
                        oracle.ide.marshal.tag.Tag2Object t2o)
Initialize the JProject object from the specified element.

Specified by:
toObject in interface oracle.ide.marshal.tag.TagConverter

processChildren

protected boolean processChildren(oracle.ide.marshal.tag.TagElement element,
                                  JProject project,
                                  java.net.URL docURLParent,
                                  oracle.ide.marshal.tag.Tag2Object t2o)
This method is reponsible for adding the owned children to the project object. These children must be added using the project methods: add( Collection children, Container owner ), or add( Node child, Container owner ) The chilren to add are obtained from the specified TagElement. Care must be taking to create only the nodes that need to be added to the project. The node URL can be retrieved from the specified element using the getElementURL method. Once the URL is know, the node can be created using the createNode method. This method should return true if it actually processed children, otherwise, it should return false.


getElementURL

protected java.net.URL getElementURL(oracle.ide.marshal.tag.TagElement element,
                                     java.net.URL docParentURL)
This method retrieves the fully qualified URL from the specified element. In general, the URL is persisted relative to the docParentURL and must be fully qualified before use.


createNode

protected Node createNode(java.net.URL url,
                          oracle.ide.marshal.tag.Tag2Object t2o)
Use this method to create the Node pointed to by the specified URL. The method returns null if the node could not be created. The specified Tag2Object parameter is used to log the reason why the node could not be created.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.