felix@7618: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde felix@7618: * Software engineering by Intevation GmbH felix@7618: * felix@7618: * This file is Free Software under the GNU AGPL (>=v3) felix@7618: * and comes with ABSOLUTELY NO WARRANTY! Check out the felix@7618: * documentation coming with Dive4Elements River for details. felix@7618: */ felix@7618: felix@7618: package org.dive4elements.river.artifacts.access; felix@7618: felix@7618: import org.dive4elements.river.artifacts.D4EArtifact; felix@7618: felix@7618: tom@8856: /** Access data used to mark a certain Wst column as an official line. */ felix@7618: public class IsOfficialAccess extends Access felix@7618: { felix@7618: protected Boolean isOfficial; felix@7618: felix@7618: felix@7618: public IsOfficialAccess(D4EArtifact givenArtifact) { felix@7618: super(givenArtifact); felix@7618: } felix@7618: felix@7618: /** Returns whether the artifact marked its wst col as official. */ felix@7618: public Boolean isOfficial() { felix@7618: felix@7618: if (isOfficial == null) { felix@7618: String value = getString("official"); felix@7618: isOfficial = (value != null && value.equals("1")); felix@7618: } felix@7618: felix@7618: return isOfficial; felix@7618: } felix@7618: } felix@7618: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :