public final ErrorDocument registerError(String message, int depth, ReferenceContext context) throws ErrorDocumentServiceException { context = EmptyReferenceContext.checkContext(context); return registerError(message, (Throwable) null, depth, context); }
/** * {@inheritDoc} */ public synchronized T2Reference nextReferenceSetReference() { T2ReferenceImpl r = new T2ReferenceImpl(); r.setNamespacePart(getNamespace()); r.setLocalPart(getNextLocalPart()); r.setReferenceType(T2ReferenceType.ReferenceSet); r.setDepth(0); r.setContainsErrors(false); return r; }
/** * Order by total path cost */ public int compareTo(TranslationPath tp) { if (tp.getPathCost() > this.getPathCost()) { return -1; } else if (tp.getPathCost() < this.getPathCost()) { return 1; } else { return 0; } }
public synchronized String getCompactForm() { if (this.compactForm == null) { this.compactForm = getNamespacePart() + ":" + getLocalPart() + ":" + getDepth(); } return this.compactForm; }
public static T2ReferenceImpl getAsImpl(T2Reference source) { if (source instanceof T2ReferenceImpl) { return (T2ReferenceImpl) source; } else { return new T2ReferenceImpl(source); } }
public final String getInternalId() { if (this.compactId == null) { this.compactId = id.getCompactForm(); } return this.compactId; }
public boolean delete(List<T2Reference> references) throws ReferenceServiceException { boolean result=true; for (T2Reference reference : references) { delete(reference); } return result; }
/** * {@inheritDoc} */ public T2Reference nextErrorDocumentReference(int depth) { T2ReferenceImpl r = new T2ReferenceImpl(); r.setNamespacePart(getNamespace()); r.setLocalPart(getNextLocalPart()); r.setReferenceType(T2ReferenceType.ErrorDocument); r.setDepth(depth); // This is an error document, it contains errors by definition r.setContainsErrors(true); return r; }
public synchronized String getCompactForm() { if (this.compactForm == null) { this.compactForm = getNamespacePart() + ":" + getLocalPart() + ":" + getDepth(); } return this.compactForm; }
public static T2ReferenceImpl getAsImpl(T2Reference source) { if (source instanceof T2ReferenceImpl) { return (T2ReferenceImpl) source; } else { return new T2ReferenceImpl(source); } }
public final ErrorDocument registerError(Throwable t, int depth, ReferenceContext context) throws ErrorDocumentServiceException { context = EmptyReferenceContext.checkContext(context); return registerError("", t, depth, context); }
/** * Order by total path cost */ public int compareTo(TranslationPath tp) { if (tp.getPathCost() > this.getPathCost()) { return -1; } else if (tp.getPathCost() < this.getPathCost()) { return 1; } else { return 0; } }
public final String getInternalId() { if (this.compactId == null) { this.compactId = id.getCompactForm(); } return this.compactId; }
/** * {@inheritDoc} */ public T2Reference nextErrorDocumentReference(int depth) { T2ReferenceImpl r = new T2ReferenceImpl(); r.setNamespacePart(getNamespace()); r.setLocalPart(getNextLocalPart()); r.setReferenceType(T2ReferenceType.ErrorDocument); r.setDepth(depth); // This is an error document, it contains errors by definition r.setContainsErrors(true); return r; }
public static T2ReferenceImpl getAsImpl(T2Reference source) { if (source instanceof T2ReferenceImpl) { return (T2ReferenceImpl) source; } else { return new T2ReferenceImpl(source); } }
/** * Order by total path cost */ public int compareTo(TranslationPath tp) { if (tp.getPathCost() > this.getPathCost()) { return -1; } else if (tp.getPathCost() < this.getPathCost()) { return 1; } else { return 0; } }
public final String getInternalId() { if (this.compactId == null) { this.compactId = id.getCompactForm(); } return this.compactId; }
/** * {@inheritDoc} */ public T2Reference nextListReference(boolean containsErrors, int listDepth) { T2ReferenceImpl r = new T2ReferenceImpl(); r.setNamespacePart(getNamespace()); r.setLocalPart(getNextLocalPart()); r.setReferenceType(T2ReferenceType.IdentifiedList); r.setDepth(listDepth); r.setContainsErrors(containsErrors); return r; }
/** * {@inheritDoc} */ public synchronized T2Reference nextReferenceSetReference() { T2ReferenceImpl r = new T2ReferenceImpl(); r.setNamespacePart(getNamespace()); r.setLocalPart(getNextLocalPart()); r.setReferenceType(T2ReferenceType.ReferenceSet); r.setDepth(0); r.setContainsErrors(false); return r; }
/** * {@inheritDoc} */ public T2Reference nextListReference(boolean containsErrors, int listDepth) { T2ReferenceImpl r = new T2ReferenceImpl(); r.setNamespacePart(getNamespace()); r.setLocalPart(getNextLocalPart()); r.setReferenceType(T2ReferenceType.IdentifiedList); r.setDepth(listDepth); r.setContainsErrors(containsErrors); return r; }