public class XPathHelper extends Object
| Constructor and Description |
|---|
XPathHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getSchemaLocation(Structure structure)
Returns a string (XPATH) representation of an XML Schema component.
|
static String |
getSchemaLocation(Structure structure,
boolean dealWithAnonTypes)
Returns a string (XPATH) representation of an XML Schema component.
|
static void |
getSchemaLocation(Structure structure,
StringBuffer location)
Deduces an XPATH expression qualifying the path from the schema root to the given structure in
question.
|
static void |
getSchemaLocation(Structure structure,
StringBuffer location,
boolean dealWithAnonTypes)
Deduces an XPATH expression qualifying the path from the schema root to the given structure in
question.
|
public static void getSchemaLocation(Structure structure, StringBuffer location)
structure - AN XML structure.location - The XPATH expression to be created.public static void getSchemaLocation(Structure structure, StringBuffer location, boolean dealWithAnonTypes)
structure - AN XML structure.location - The XPATH expression to be created.dealWithAnonTypes - Indicates whether to include XPATH fragments for anonymous types.public static String getSchemaLocation(Structure structure, boolean dealWithAnonTypes)
The location of a structure is composed of two parts:
The local location is defined by:
structure - the structure for which to return a representation.dealWithAnonTypes - Indicates whether to include XPATH fragments for anonymous types.public static String getSchemaLocation(Structure structure)
structure - the structure for which to return a representationgetSchemaLocation(Structure, boolean)Copyright © 2016. All rights reserved.