public class XdiError extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static XDIAddress |
XDI_ADD_AC_ERROR |
static XDIAddress |
XDI_ADD_AS_ERROR |
static XDIAddress |
XDI_ADD_ERROR |
static XDIArc |
XDI_ARC_AC_ERROR |
static XDIArc |
XDI_ARC_AS_ERROR |
static XDIArc |
XDI_ARC_ERROR |
Modifier | Constructor and Description |
---|---|
protected |
XdiError(XdiAttribute xdiAttribute) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
static XdiError |
findXdiError(XdiContext<?> xdiContext,
boolean create)
Factory method that finds or creates an XDI error for a context.
|
static XdiError |
fromXdiAttribute(XdiAttribute xdiAttribute)
Factory method that creates an XDI error bound to a given XDI attribute.
|
ContextNode |
getContextNode()
Returns the underlying context node to which this XDI error is bound.
|
String |
getErrorString() |
Date |
getErrorTimestamp() |
XdiAttribute |
getXdiAttribute()
Returns the underlying XDI attribute to which this XDI error is bound.
|
int |
hashCode() |
static boolean |
isValid(XdiAttribute xdiAttribute)
Checks if an XDI attribute is a valid XDI error.
|
void |
setErrorString(String errorString) |
void |
setErrorTimestamp(Date errorTimestamp) |
String |
toString() |
public static final XDIArc XDI_ARC_ERROR
public static final XDIAddress XDI_ADD_ERROR
public static final XDIArc XDI_ARC_AS_ERROR
public static final XDIAddress XDI_ADD_AS_ERROR
public static final XDIArc XDI_ARC_AC_ERROR
public static final XDIAddress XDI_ADD_AC_ERROR
protected XdiError(XdiAttribute xdiAttribute)
public static boolean isValid(XdiAttribute xdiAttribute)
xdiAttribute
- The XDI attribute to check.public static XdiError fromXdiAttribute(XdiAttribute xdiAttribute)
xdiAttribute
- The XDI attribute that is an XDI error.public static XdiError findXdiError(XdiContext<?> xdiContext, boolean create)
public XdiAttribute getXdiAttribute()
public ContextNode getContextNode()
public Date getErrorTimestamp()
public void setErrorTimestamp(Date errorTimestamp)
public String getErrorString()
public void setErrorString(String errorString)
Copyright © 2017. All rights reserved.