# HG changeset patch # User Felix Wolfsteller # Date 1318417152 0 # Node ID e8627d1e2db64a86ba8293ffa29cd96e1f465d9d # Parent 71d369ab789dd110f0f1969f1835fb950c36f530 Cosmetics, docs. flys-artifacts/trunk@2948 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 71d369ab789d -r e8627d1e2db6 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Oct 12 10:21:59 2011 +0000 +++ b/flys-artifacts/ChangeLog Wed Oct 12 10:59:12 2011 +0000 @@ -1,3 +1,11 @@ +2011-10-12 Felix Wolfsteller + + Cosmetics, docs. + + * src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java: + Cosmetics: Space after full stop in commments, slightly improved + documentation, added one debug message. + 2011-10-12 Felix Wolfsteller Fix remainder of flys/issue304 (Erweiterte Funktionen W-Differenzen) . diff -r 71d369ab789d -r e8627d1e2db6 flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Oct 12 10:21:59 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Oct 12 10:59:12 2011 +0000 @@ -59,17 +59,17 @@ */ public abstract class FLYSArtifact extends DefaultArtifact { - /** The logger that is used in this artifact.*/ + /** The logger that is used in this artifact. */ private static Logger logger = Logger.getLogger(FLYSArtifact.class); public static final String COMPUTING_CACHE = "computed.values"; - /** The XPath that points to the input data elements of the FEED document.*/ + /** The XPath that points to the input data elements of the FEED document. */ public static final String XPATH_FEED_INPUT = "/art:action/art:data/art:input"; - /** The XPath that points to the name of the target state of ADVANCE.*/ + /** The XPath that points to the name of the target state of ADVANCE. */ public static final String XPATH_ADVANCE_TARGET = "/art:action/art:target/@art:name"; @@ -79,29 +79,32 @@ public static final String XPATH_FILTER = "/art:action/art:filter/art:out"; - /** The constant string that shows that an operation was successful.*/ + /** The constant string that shows that an operation was successful. */ public static final String OPERATION_SUCCESSFUL = "SUCCESS"; - /** The constant string that shows that an operation failed.*/ + /** The constant string that shows that an operation failed. */ public static final String OPERATION_FAILED = "FAILURE"; /** The identifier of the current state. */ protected String currentStateId; - /** The identifiers of previous states on a stack.*/ + /** The identifiers of previous states on a stack. */ protected List previousStateIds; - /** The name of the artifact.*/ + /** The name of the artifact. */ protected String name; - /** The data that have been inserted into this artifact.*/ + /** The data that have been inserted into this artifact. */ protected Map data; - /** The list of facets supported by this artifact.*/ + /** The list of facets supported by this artifact. */ protected Map> facets; - /** out -> facets */ + /** + * Used to generates "view" on the facets (hides facets not matching the + * filter in output of collection); out -> facets. + */ protected Map> filterFacets; @@ -236,6 +239,11 @@ // Do not clone filter facets! } + + /** + * Builds filter facets from document. + * @see filterFacets + */ protected Map> buildFilterFacets(Document document) { NodeList nodes = (NodeList)XMLUtils.xpath( @@ -663,6 +671,7 @@ protected List filterOutputs(List outs) { if (filterFacets == null || filterFacets.isEmpty()) { + logger.debug("No filter for Outputs."); return outs; } @@ -825,6 +834,10 @@ return compute(context, hash, current, type, generateFacets); } + + /** + * Like compute, but identify State by it id (string). + */ public Object compute( CallContext context, String hash,