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 String
static String
Create a string representation of an item for use in an error messagestatic String
depictCodepoint
(int cp) static CharSequence
depictSequence
(Sequence seq) static String
depictSequenceStart
(SequenceIterator seq, int max, int actual) static String
describeGenre
(Genre genre) static String
static String
indefiniteArticleFor
(String s, boolean caps) static String
static UnicodeString
static String
Add delimiters to represent variable information within an error messagestatic String
Add delimiters to represent variable information within an error messagestatic String
wrap
(Expression exp) static String
wrap
(UnicodeString cs) Add delimiters to represent variable information within an error messagestatic String
wrap
(UnicodeString cs, int valueType) Add delimiters to represent variable information within an error message
-
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 delimited- Returns:
- the delimited variable information
-
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 -
depictCodepoint
-
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
-
abbreviateURI
-
abbreviateEQName
-
wrap
-
describeGenre
-
describeVisibility
-
show
-
indefiniteArticleFor
-