| | |
| | | */ |
| | | public LazyDN(String dnString) |
| | | { |
| | | |
| | | this.dnString = dnString; |
| | | this.decodedDN = null; |
| | | } |
| | |
| | | public boolean isNullDN() |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().isNullDN(); |
| | | } |
| | | |
| | |
| | | public int getNumComponents() |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().getNumComponents(); |
| | | } |
| | | |
| | |
| | | public RDN getRDN(int pos) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().getRDN(pos); |
| | | } |
| | | |
| | |
| | | public DN getParent() |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().getParent(); |
| | | } |
| | | |
| | |
| | | public DN getParentDNInSuffix() |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().getParentDNInSuffix(); |
| | | } |
| | | |
| | |
| | | public DN concat(RDN rdn) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().concat(rdn); |
| | | } |
| | | |
| | |
| | | public DN concat(RDN[] rdnComponents) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().concat(rdnComponents); |
| | | } |
| | | |
| | |
| | | public DN concat(DN relativeBaseDN) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().concat(relativeBaseDN); |
| | | } |
| | | |
| | |
| | | public boolean isDescendantOf(DN dn) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().isDescendantOf(dn); |
| | | } |
| | | |
| | |
| | | public boolean isAncestorOf(DN dn) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().isAncestorOf(dn); |
| | | } |
| | | |
| | |
| | | public boolean equals(Object o) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().equals(o); |
| | | } |
| | | |
| | |
| | | public int hashCode() |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().hashCode(); |
| | | } |
| | | |
| | |
| | | @Override() |
| | | public String toString() |
| | | { |
| | | |
| | | return dnString; |
| | | } |
| | | |
| | |
| | | @Override() |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append(dnString); |
| | | } |
| | | |
| | |
| | | public String toNormalizedString() |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().toNormalizedString(); |
| | | } |
| | | |
| | |
| | | public void toNormalizedString(StringBuilder buffer) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | getDecodedDN().toNormalizedString(buffer); |
| | | } |
| | | |
| | |
| | | public int compareTo(DN dn) |
| | | throws RuntimeException |
| | | { |
| | | |
| | | return getDecodedDN().compareTo(dn); |
| | | } |
| | | |
| | |
| | | private DN getDecodedDN() |
| | | throws RuntimeException |
| | | { |
| | | |
| | | if (decodedDN == null) |
| | | { |
| | | try |