Package net.sf.saxon.trans
Class Err
java.lang.Object
net.sf.saxon.trans.Err
Class containing utility methods for handling error messages
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
abbreviateEQName
(String eqName) static String
abbreviateURI
(String uri) Abbreviate a URI for use in error messagesstatic CharSequence
Create a string representation of an item for use in an error messagestatic CharSequence
depictSequence
(Sequence seq) static String
depictSequenceStart
(SequenceIterator seq, int max, int actual) static CharSequence
static String
wrap
(CharSequence cs) Add delimiters to represent variable information within an error messagestatic String
wrap
(CharSequence cs, int valueType) Add delimiters to represent variable information within an error messagestatic String
wrap
(Expression exp)
-
Field Details
-
ELEMENT
public static final int ELEMENT- See Also:
-
ATTRIBUTE
public static final int ATTRIBUTE- See Also:
-
FUNCTION
public static final int FUNCTION- See Also:
-
VALUE
public static final int VALUE- See Also:
-
VARIABLE
public static final int VARIABLE- See Also:
-
GENERAL
public static final int GENERAL- See Also:
-
URI
public static final int URI- See Also:
-
EQNAME
public static final int EQNAME- See Also:
-
-
Constructor Details
-
Err
public Err()
-
-
Method Details
-
wrap
Add delimiters to represent variable information within an error message- Parameters:
cs
- the variable information to be delimited- Returns:
- the delimited variable information
-
wrap
Add delimiters to represent variable information within an error message- Parameters:
cs
- the variable information to be delimitedvalueType
- the type of value, e.g. element name or attribute name- Returns:
- the delimited variable information
-
depict
Create a string representation of an item for use in an error message -
depictSequence
-
depictSequenceStart
-
truncate30
-
abbreviateURI
Abbreviate a URI for use in error messages- Parameters:
uri
- the full URI- Returns:
- the URI, truncated at the last slash or to the last 15 characters, with a leading ellipsis, as appropriate
-
abbreviateEQName
-
wrap
-