|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdeveloper.model.Tag2Children
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 |
public Tag2Children()
| Method Detail |
public boolean toElement(java.lang.Object object,
oracle.ide.marshal.tag.TagElement element,
oracle.ide.marshal.tag.Tag2Object t2o)
toElement in interface oracle.ide.marshal.tag.TagConverter
public boolean toObject(java.lang.Object object,
oracle.ide.marshal.tag.TagElement element,
oracle.ide.marshal.tag.Tag2Object t2o)
JProject object from the
specified element.
toObject in interface oracle.ide.marshal.tag.TagConverter
protected boolean processChildren(oracle.ide.marshal.tag.TagElement element,
JProject project,
java.net.URL docURLParent,
oracle.ide.marshal.tag.Tag2Object t2o)
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.
protected java.net.URL getElementURL(oracle.ide.marshal.tag.TagElement element,
java.net.URL docParentURL)
URL from the
specified element. In general, the URL
is persisted relative to the docParentURL and must
be fully qualified before use.
protected Node createNode(java.net.URL url,
oracle.ide.marshal.tag.Tag2Object t2o)
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 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.