org.w3c.mwi.mobileok.basic
Class Preprocessor.ProcessingElement

java.lang.Object
  extended by org.w3c.mwi.mobileok.basic.Preprocessor.ProcessingElement
Enclosing class:
Preprocessor

private final class Preprocessor.ProcessingElement
extends java.lang.Object

Internal private class to hold a Resource along with a boolean that tells whether the resource has been processed or not.


Field Summary
private  boolean processed
          Flag that asserts whether the resource has been (or is being) processed.
private  Resource resource
          Resource being processed.
 
Constructor Summary
Preprocessor.ProcessingElement(Resource resource)
          Default constructor.
 
Method Summary
 Resource getResource()
          Returns the resource bound to this instance.
 boolean hasBeenProcessed()
          Returns true when the resource is being or has been processed.
 void setProcessedFlag()
          Sets the flag to assert that the resource is now being processed or has already been processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

private final Resource resource
Resource being processed.


processed

private boolean processed
Flag that asserts whether the resource has been (or is being) processed.

Constructor Detail

Preprocessor.ProcessingElement

public Preprocessor.ProcessingElement(Resource resource)
Default constructor.

Parameters:
resource - Resource to bind to the created instance.
Method Detail

getResource

public final Resource getResource()
Returns the resource bound to this instance.

Returns:
the resource bound to this instance.

hasBeenProcessed

public final boolean hasBeenProcessed()
Returns true when the resource is being or has been processed.

Returns:
true when the resource has been processed, false otherwise.

setProcessedFlag

public final void setProcessedFlag()
Sets the flag to assert that the resource is now being processed or has already been processed.