public class XmlFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Integer,java.lang.String> |
nodeIdToNodeName
Map of token types to token names
|
private static java.util.Map<java.lang.String,java.lang.Integer> |
nodeNameToNodeId
Map of token names to token types
|
Constructor and Description |
---|
XmlFactory() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
convertAblNodeToNodeId(java.lang.String nodeName)
Resolve the given numeric token type to a token name.
|
static character |
convertNodeToAblNode(int nodeId)
Resolve the given numeric token type to a character ABL token type.
|
static void |
createSaxAttributes(handle h)
Constructs a new instance of the Progress Sax-Attributes object and retrieves the handle
variable associated with it.
|
static void |
createSaxAttributes(handle h,
character widgetPool)
Constructs a new instance of the Progress Sax-Attributes object and retrieves the handle
variable associated with it.
|
static void |
createSaxAttributes(handle h,
java.lang.String widgetPool)
Constructs a new instance of the Progress Sax-Attributes object and retrieves the handle
variable associated with it.
|
static void |
createSaxReader(handle h)
Constructs a new instance of the Progress Sax-Reader object and retrieves the handle
variable associated with it.
|
static void |
createSaxReader(handle h,
character widgetPool)
Constructs a new instance of the Progress Sax-Reader object and retrieves the handle
variable associated with it.
|
static void |
createSaxReader(handle h,
java.lang.String widgetPool)
Constructs a new instance of the Progress Sax-Reader object and retrieves the handle
variable associated with it.
|
static void |
createSaxWriter(handle h)
Constructs a new instance of the Progress Sax-Writer object and retrieves the handle
variable associated with it.
|
static void |
createSaxWriter(handle h,
character widgetPool)
Constructs a new instance of the Progress Sax-Writer object and retrieves the handle
variable associated with it.
|
static void |
createSaxWriter(handle h,
java.lang.String widgetPool)
Constructs a new instance of the Progress Sax-Writer object and retrieves the handle
variable associated with it.
|
static void |
createXDocument(handle h)
Constructs a new instance of the Progress X-Document object and
retrieves the handle variable associated with it.
|
static void |
createXDocument(handle h,
character poolName)
Constructs a new instance of the Progress X-Document object and
retrieves the handle variable associated with it.
|
static void |
createXDocument(handle h,
java.lang.String poolName)
Constructs a new instance of the Progress X-Document object and
retrieves the handle variable associated with it.
|
static void |
createXNodeReference(handle h)
Constructs a new instance of the Progress X-Node-Reference object and
retrieves the handle variable associated with it.
|
static void |
createXNodeReference(handle h,
character poolName)
Constructs a new instance of the Progress X-Node-Reference object and
retrieves the handle variable associated with it.
|
(package private) static void |
createXNodeReference(handle h,
handle docHandle,
character name,
character type)
Constructs a new instance of the Progress X-Node-Reference object and
retrieves the handle variable associated with it.
|
static void |
createXNodeReference(handle h,
handle docHandle,
character nsUri,
character name,
character type)
Constructs a new instance of the Progress X-Node-Reference object and
retrieves the handle variable associated with it.
|
static void |
createXNodeReference(handle h,
java.lang.String poolName)
Constructs a new instance of the Progress X-Node-Reference object and
retrieves the handle variable associated with it.
|
private static org.w3c.dom.Document |
getDocument(handle docHandle)
Extract
Document from valid handle, which contains XDocumentImpl class. |
private static final java.util.Map<java.lang.String,java.lang.Integer> nodeNameToNodeId
private static final java.util.Map<java.lang.Integer,java.lang.String> nodeIdToNodeName
public static void createXDocument(handle h)
h
- The handle where the new resource will be set as the referent.public static void createXDocument(handle h, java.lang.String poolName)
h
- The handle where the new resource will be set as the referent.poolName
- The name of the widget pool. null
if the unnamed pool must be used.public static void createXDocument(handle h, character poolName)
h
- The handle where the new resource will be set as the referent.poolName
- The name of the widget pool. null
if the unnamed pool must be used.public static void createXNodeReference(handle h)
h
- The handle where the new resource will be set as the referent.public static void createXNodeReference(handle h, java.lang.String poolName)
h
- The handle where the new resource will be set as the referent.poolName
- The name of the widget pool. null
if the unnamed pool must be used.public static void createXNodeReference(handle h, character poolName)
h
- The handle where the new resource will be set as the referent.poolName
- The name of the widget pool. null
if the unnamed pool must be used.public static void createXNodeReference(handle h, handle docHandle, character nsUri, character name, character type)
h
- The handle where the new resource will be set as the referent.
The handle should contains resource with type of XNodeRef.docHandle
- handle that should contains the X-Document object to create X-Node under.nsUri
- Name space associated with the current set of names.name
- The name of the node to create.type
- The type of the node to create.public static void createSaxAttributes(handle h)
h
- The handle where the new resource will be set as the referent.public static void createSaxAttributes(handle h, java.lang.String widgetPool)
h
- The handle where the new resource will be set as the referent.widgetPool
- The name of the widget pool. null
if the unnamed pool must be used.public static void createSaxAttributes(handle h, character widgetPool)
h
- The handle where the new resource will be set as the referent.widgetPool
- The name of the widget pool. null
if the unnamed pool must be used.public static void createSaxReader(handle h)
h
- The handle where the new resource will be set as the referent.public static void createSaxReader(handle h, java.lang.String widgetPool)
h
- The handle where the new resource will be set as the referent.widgetPool
- The name of the widget pool. null
if the unnamed pool must be used.public static void createSaxReader(handle h, character widgetPool)
h
- The handle where the new resource will be set as the referent.widgetPool
- The name of the widget pool. null
if the unnamed pool must be used.public static void createSaxWriter(handle h)
h
- The handle where the new resource will be set as the referent.public static void createSaxWriter(handle h, java.lang.String widgetPool)
h
- The handle where the new resource will be set as the referent.widgetPool
- The name of the widget pool. null
if the unnamed pool must be used.public static void createSaxWriter(handle h, character widgetPool)
h
- The handle where the new resource will be set as the referent.widgetPool
- The name of the widget pool. null
if the unnamed pool must be used.public static character convertNodeToAblNode(int nodeId)
nodeId
- integer constant representing node id.unknow
if node id could not be resolved.public static java.lang.Integer convertAblNodeToNodeId(java.lang.String nodeName)
nodeName
- String constant representing token name.null
if name could not
be resolved.static void createXNodeReference(handle h, handle docHandle, character name, character type)
h
- The handle where the new resource will be set as the referent.
The handle should contains resource with type of XNodeRef.docHandle
- handle should be valid and should contains the valid X-Document object to
create X-Node under.name
- The name of the node to create.type
- The type of the node to create.org.w3c.dom.DOMException
- if type is cannot resolved. Or if name is invalid for XML.private static org.w3c.dom.Document getDocument(handle docHandle)
Document
from valid handle, which contains XDocumentImpl
class.
If handle is not valid or doesn't inherit XDocumentImpl
than return null.docHandle
- The handle reference.Document
or null
if handle invalid or doesn't contains
Document object.