public class Err extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE |
static int |
ELEMENT |
static int |
FUNCTION |
static int |
GENERAL |
static int |
URI |
static int |
VALUE |
static int |
VARIABLE |
Constructor and Description |
---|
Err() |
Modifier and Type | Method and Description |
---|---|
static String |
abbreviateURI(String uri)
Abbreviate a URI for use in error messages
|
static CharSequence |
depict(Item item)
Create a string representation of an item for use in an error message
|
static String |
wrap(CharSequence cs)
Add delimiters to represent variable information within an error message
|
static String |
wrap(CharSequence cs,
int valueType)
Add delimiters to represent variable information within an error message
|
static String |
wrap(Expression exp) |
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int FUNCTION
public static final int VALUE
public static final int VARIABLE
public static final int GENERAL
public static final int URI
public static String wrap(CharSequence cs)
cs
- the variable information to be delimitedpublic static String wrap(CharSequence cs, int valueType)
cs
- the variable information to be delimitedvalueType
- the type of value, e.g. element name or attribute namepublic static CharSequence depict(Item item)
public static String abbreviateURI(String uri)
uri
- the full URIpublic static String wrap(Expression exp)
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.