public synchronized String getCompactForm() { if (this.compactForm == null) { this.compactForm = getNamespacePart() + ":" + getLocalPart() + ":" + getDepth(); } return this.compactForm; }
public synchronized String getCompactForm() { if (this.compactForm == null) { this.compactForm = getNamespacePart() + ":" + getLocalPart() + ":" + getDepth(); } return this.compactForm; }
public synchronized String getCompactForm() { return getNamespacePart() + ":" + getLocalPart() + ":" + getDepth(); }
if (referenceType.equals(T2ReferenceType.ReferenceSet)) { try { result = new URI("t2:ref//" + getNamespacePart() + "?" + getLocalPart()); } catch (URISyntaxException e) { logger.error("Unable to create URI", e); result = new URI("t2:list//" + getNamespacePart() + "?" + getLocalPart() + "/" + containsErrors + "/" + depth); } catch (URISyntaxException e) { result = new URI("t2:error//" + getNamespacePart() + "?" + getLocalPart() + "/" + depth); } catch (URISyntaxException e) {
/** * Drill inside an error document reference to get the error one deeper than * this as long as it is at least depth 1. */ T2ReferenceImpl getDeeperErrorReference() { if (getReferenceType().equals(T2ReferenceType.ErrorDocument)) { if (getDepth() == 0) { throw new AssertionError("Error identifier already has depth 0, cannot decrease"); } T2ReferenceImpl result = new T2ReferenceImpl(); result.setContainsErrors(true); result.setDepth(getDepth() - 1); result.setLocalPart(getLocalPart()); result.setNamespacePart(getNamespacePart()); result.setReferenceType(T2ReferenceType.ErrorDocument); return result; } throw new AssertionError( "Attempt to get a deeper reference on something that isn't an error ref"); }
/** * Drill inside an error document reference to get the error one deeper than * this as long as it is at least depth 1. */ T2ReferenceImpl getDeeperErrorReference() { if (getReferenceType().equals(T2ReferenceType.ErrorDocument)) { if (getDepth() == 0) { throw new AssertionError( "Error identifier already has depth 0, cannot decrease"); } T2ReferenceImpl result = new T2ReferenceImpl(); result.setContainsErrors(true); result.setDepth(getDepth() - 1); result.setLocalPart(getLocalPart()); result.setNamespacePart(getNamespacePart()); result.setReferenceType(T2ReferenceType.ErrorDocument); return result; } throw new AssertionError( "Attempt to get a deeper reference on something that isn't an error ref"); }
/** * Drill inside an error document reference to get the error one deeper than * this as long as it is at least depth 1. */ T2ReferenceImpl getDeeperErrorReference() { if (getReferenceType().equals(T2ReferenceType.ErrorDocument)) { if (getDepth() == 0) { throw new AssertionError( "Error identifier already has depth 0, cannot decrease"); } T2ReferenceImpl result = new T2ReferenceImpl(); result.setContainsErrors(true); result.setDepth(getDepth() - 1); result.setLocalPart(getLocalPart()); result.setNamespacePart(getNamespacePart()); result.setReferenceType(T2ReferenceType.ErrorDocument); return result; } throw new AssertionError( "Attempt to get a deeper reference on something that isn't an error ref"); }