org.apache.wicket.resource.aggregation
Class ResourceReferenceAndStringData
java.lang.Object
org.apache.wicket.resource.aggregation.ResourceReferenceAndStringData
public class ResourceReferenceAndStringData
- extends Object
A data holder built for the AbstractResourceAggregatingHeaderResponse
that groups the
resource reference with a boolean representing whether it is css (or, if not, it is js), and the
string that was passed in to the responsible render*Reference method (for JS, this is ID, for
CSS, this is media).
It acts as a temporary data holder while the IHeaderContributors are being called so that at the
end of their traversal, we can render these references in an aggregated way, and still have the
appropriate data (i.e. was it CSS or JS) to render it properly.
- Author:
- Jeremy Thomerson
ResourceReferenceAndStringData
public ResourceReferenceAndStringData(ResourceReference reference,
String string,
boolean css)
- Construct with fields.
- Parameters:
reference
- string
- css
-
getReference
public ResourceReference getReference()
- Returns:
- the resource reference that the user rendered
getString
public String getString()
- Returns:
- the string representing media (if this isCss()), or id (if not, meaning it's js)
isCss
public boolean isCss()
- Returns:
- true if this is css, false if it's js
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.