01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.rewriter.rom.js;
06:
07: import com.sun.portal.rewriter.rom.DataRule;
08: import com.sun.portal.rewriter.util.re.Pattern;
09:
10: public abstract class JSDataRule extends DataRule {
11: private final Pattern[] nameSpec;
12:
13: public JSDataRule(final JSData aData) {
14: super (aData);
15: nameSpec = createAttributeSpec(aData.getName());
16: }//constructor
17:
18: public final boolean matchCommon(JSData aMache) {
19: if (match(nameSpec, aMache.getName())) {
20: return true;
21: }
22:
23: return false;
24: }//matchCommon()
25: }//class JSDataRule
|