|
Last change
on this file since 8564 was 8084, checked in by bastiK, 11 years ago |
|
add svn:eol-style=native for svgsalamander
|
-
Property svn:eol-style
set to
native
|
|
File size:
1.5 KB
|
| Rev | Line | |
|---|
| [8084] | 1 | /*
|
|---|
| 2 | * To change this template, choose Tools | Templates
|
|---|
| 3 | * and open the template in the editor.
|
|---|
| 4 | */
|
|---|
| 5 | package com.kitfox.svg.xml;
|
|---|
| 6 |
|
|---|
| 7 | /**
|
|---|
| 8 | *
|
|---|
| 9 | * @author kitfox
|
|---|
| 10 | */
|
|---|
| 11 | public class StyleSheetRule
|
|---|
| 12 | {
|
|---|
| 13 | final String styleName;
|
|---|
| 14 | final String tag;
|
|---|
| 15 | final String className;
|
|---|
| 16 |
|
|---|
| 17 | public StyleSheetRule(String styleName, String tag, String className)
|
|---|
| 18 | {
|
|---|
| 19 | this.styleName = styleName;
|
|---|
| 20 | this.tag = tag;
|
|---|
| 21 | this.className = className;
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | public int hashCode()
|
|---|
| 25 | {
|
|---|
| 26 | int hash = 7;
|
|---|
| 27 | hash = 13 * hash + (this.styleName != null ? this.styleName.hashCode() : 0);
|
|---|
| 28 | hash = 13 * hash + (this.tag != null ? this.tag.hashCode() : 0);
|
|---|
| 29 | hash = 13 * hash + (this.className != null ? this.className.hashCode() : 0);
|
|---|
| 30 | return hash;
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | public boolean equals(Object obj)
|
|---|
| 34 | {
|
|---|
| 35 | if (obj == null)
|
|---|
| 36 | {
|
|---|
| 37 | return false;
|
|---|
| 38 | }
|
|---|
| 39 | if (getClass() != obj.getClass())
|
|---|
| 40 | {
|
|---|
| 41 | return false;
|
|---|
| 42 | }
|
|---|
| 43 | final StyleSheetRule other = (StyleSheetRule) obj;
|
|---|
| 44 | if ((this.styleName == null) ? (other.styleName != null) : !this.styleName.equals(other.styleName))
|
|---|
| 45 | {
|
|---|
| 46 | return false;
|
|---|
| 47 | }
|
|---|
| 48 | if ((this.tag == null) ? (other.tag != null) : !this.tag.equals(other.tag))
|
|---|
| 49 | {
|
|---|
| 50 | return false;
|
|---|
| 51 | }
|
|---|
| 52 | if ((this.className == null) ? (other.className != null) : !this.className.equals(other.className))
|
|---|
| 53 | {
|
|---|
| 54 | return false;
|
|---|
| 55 | }
|
|---|
| 56 | return true;
|
|---|
| 57 | }
|
|---|
| 58 |
|
|---|
| 59 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.