public class Err
extends java.lang.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 java.lang.String |
abbreviateURI(java.lang.String uri)
Abbreviate a URI for use in error messages
|
static java.lang.CharSequence |
depict(Item item)
Create a string representation of an item for use in an error message
|
static java.lang.CharSequence |
depictSequence(Sequence<?> seq) |
static java.lang.String |
depictSequenceStart(SequenceIterator seq,
int max,
int actual) |
static java.lang.CharSequence |
truncate30(java.lang.CharSequence cs) |
static java.lang.String |
wrap(java.lang.CharSequence cs)
Add delimiters to represent variable information within an error message
|
static java.lang.String |
wrap(java.lang.CharSequence cs,
int valueType)
Add delimiters to represent variable information within an error message
|
static java.lang.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 java.lang.String wrap(java.lang.CharSequence cs)
cs
- the variable information to be delimitedpublic static java.lang.String wrap(java.lang.CharSequence cs, int valueType)
cs
- the variable information to be delimitedvalueType
- the type of value, e.g. element name or attribute namepublic static java.lang.CharSequence depict(Item item)
public static java.lang.CharSequence depictSequence(Sequence<?> seq)
public static java.lang.String depictSequenceStart(SequenceIterator seq, int max, int actual)
public static java.lang.CharSequence truncate30(java.lang.CharSequence cs)
public static java.lang.String abbreviateURI(java.lang.String uri)
uri
- the full URIpublic static java.lang.String wrap(Expression exp)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.