/*
- * Sone - TrustAccessor.java - Copyright © 2010–2013 David Roden
+ * Sone - TrustAccessor.java - Copyright © 2010–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* <dd>{@link Boolean} that indicates whether this trust relationship has an
* explicit value assigned to it.</dd>
* </dl>
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class TrustAccessor extends ReflectionAccessor {
Trust trust = (Trust) object;
if ("assigned".equals(member)) {
return trust.getExplicit() != null;
- } else if ("maximum".equals(member)) {
- return ((trust.getExplicit() != null) && (trust.getExplicit() >= 100)) || ((trust.getImplicit() != null) && (trust.getImplicit() >= 100));
- } else if ("hasDistance".equals(member)) {
- return (trust.getDistance() != null) && (trust.getDistance() != Integer.MAX_VALUE);
}
return super.get(templateContext, object, member);
}