|
|
|
@ -209,10 +209,6 @@ public class PackingOptions { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Map getClassAttributeActions() { |
|
|
|
|
return classAttributeActions; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addClassAttributeAction(String attributeName, String action) { |
|
|
|
|
if(classAttributeActions == null) { |
|
|
|
|
classAttributeActions = new HashMap(); |
|
|
|
@ -220,10 +216,6 @@ public class PackingOptions { |
|
|
|
|
classAttributeActions.put(attributeName, action); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Map getFieldAttributeActions() { |
|
|
|
|
return fieldAttributeActions; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addFieldAttributeAction(String attributeName, String action) { |
|
|
|
|
if(fieldAttributeActions == null) { |
|
|
|
|
fieldAttributeActions = new HashMap(); |
|
|
|
@ -231,10 +223,6 @@ public class PackingOptions { |
|
|
|
|
fieldAttributeActions.put(attributeName, action); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Map getMethodAttributeActions() { |
|
|
|
|
return methodAttributeActions; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addMethodAttributeAction(String attributeName, String action) { |
|
|
|
|
if(methodAttributeActions == null) { |
|
|
|
|
methodAttributeActions = new HashMap(); |
|
|
|
@ -242,10 +230,6 @@ public class PackingOptions { |
|
|
|
|
methodAttributeActions.put(attributeName, action); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Map getCodeAttributeActions() { |
|
|
|
|
return codeAttributeActions; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addCodeAttributeAction(String attributeName, String action) { |
|
|
|
|
if(codeAttributeActions == null) { |
|
|
|
|
codeAttributeActions = new HashMap(); |
|
|
|
@ -288,8 +272,6 @@ public class PackingOptions { |
|
|
|
|
.hasNext();) { |
|
|
|
|
name = (String) iteratorI.next(); |
|
|
|
|
action = (String) attributeActions.get(name); |
|
|
|
|
if (!ERROR.equals(action) && !STRIP.equals(action) |
|
|
|
|
&& !PASS.equals(action)) { |
|
|
|
|
prototypeExists = false; |
|
|
|
|
for (Iterator iteratorJ = prototypes.iterator(); iteratorJ |
|
|
|
|
.hasNext();) { |
|
|
|
@ -300,13 +282,19 @@ public class PackingOptions { |
|
|
|
|
prototypeExists = true; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// if no attribute is found, add a new attribute
|
|
|
|
|
if (!prototypeExists) { |
|
|
|
|
newAttribute = new NewAttribute(name, action, |
|
|
|
|
tag); |
|
|
|
|
prototypes.add(newAttribute); |
|
|
|
|
} |
|
|
|
|
if (ERROR.equals(action)) { |
|
|
|
|
newAttribute = new NewAttribute.ErrorAttribute(name, tag); |
|
|
|
|
} else if (STRIP.equals(action)) { |
|
|
|
|
newAttribute = new NewAttribute.StripAttribute(name, tag); |
|
|
|
|
} else if (PASS.equals(action)) { |
|
|
|
|
newAttribute = new NewAttribute.PassAttribute(name, tag); |
|
|
|
|
} else { |
|
|
|
|
newAttribute = new NewAttribute(name, action, tag); |
|
|
|
|
} |
|
|
|
|
prototypes.add(newAttribute); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|