public abstract class TaurusDirectory
extends java.util.Observable
Copyright (C) Micro Focus
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_CHILD_RESOURCE_ID
XML attribute name for an ID
|
static java.lang.String |
ELEMENT_CHILD_RESOURCE
XML element name for a child resource
|
| Constructor and Description |
|---|
TaurusDirectory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addChild(IResource pResource,
org.xml.sax.Attributes pAttr)
Adds a child resource to the given
IResource. |
static java.lang.String |
getResourceID(org.xml.sax.Attributes pAttr)
Gets the resource ID out of the given XML attributes.
|
void |
notifyObservers(TaurusNotification pNotification)
Sets the changed flag of this observable and notifies observers.
|
void |
saveChildren(org.w3c.dom.Document pDoc,
org.w3c.dom.Element pXMLElement,
IResource pResource)
Creates an XML child element for every child resource of the given
resource.
|
public static final java.lang.String ELEMENT_CHILD_RESOURCE
public static final java.lang.String ATTRIBUTE_CHILD_RESOURCE_ID
public void saveChildren(org.w3c.dom.Document pDoc,
org.w3c.dom.Element pXMLElement,
IResource pResource)
pDoc - the XML documentpXMLElement - the XML elementpResource - the AWM resourceIResource.getChildrenResources()public static java.lang.String getResourceID(org.xml.sax.Attributes pAttr)
pAttr - XML attributesnull if the attributes do not
contain a resource IDpublic static void addChild(IResource pResource, org.xml.sax.Attributes pAttr)
IResource.pResource - the resourcepAttr - must contain an "ID" XML
attribute from a "childResource" element.public void notifyObservers(TaurusNotification pNotification)
pNotification - the notification. Can be null (not recommended).Observable.notifyObservers(Object)Copyright © 2015 Micro Focus GmbH. All rights reserved.