1 19 package org.netbeans.modules.xml.axi; 20 21 import org.netbeans.modules.xml.axi.visitor.AXIVisitor; 22 import org.netbeans.modules.xml.schema.model.Any.ProcessContents; 23 import org.netbeans.modules.xml.schema.model.SchemaComponent; 24 25 30 public class AnyAttribute extends AbstractAttribute { 31 32 35 public AnyAttribute(AXIModel model) { 36 super(model); 37 } 38 39 42 public AnyAttribute(AXIModel model, SchemaComponent schemaComponent) { 43 super(model, schemaComponent); 44 } 45 46 49 public AnyAttribute(AXIModel model, AXIComponent sharedComponent) { 50 super(model, sharedComponent); 51 } 52 53 56 public void accept(AXIVisitor visitor) { 57 visitor.visit(this); 58 } 59 60 63 public String getName() { 64 return "anyAttribute"; } 66 67 70 public ProcessContents getProcessContents() { 71 return processContents; 72 } 73 74 77 public void setProcessContents(ProcessContents value) { 78 ProcessContents oldValue = getProcessContents(); 79 if( (oldValue == null && value == null) || 80 (oldValue != null && oldValue == value) ) { 81 return; 82 } 83 this.processContents = value; 84 firePropertyChangeEvent(PROP_PROCESSCONTENTS, oldValue, value); 85 } 86 87 90 public String getTargetNamespace() { 91 return namespace; 92 } 93 94 97 public void setTargetNamespace(String value) { 98 String oldValue = getTargetNamespace(); 99 if( (oldValue == null && value == null) || 100 (oldValue != null && oldValue.equals(value)) ) { 101 return; 102 } 103 this.namespace = value; 104 firePropertyChangeEvent(PROP_NAMESPACE, oldValue, value); 105 } 106 107 110 public String toString() { 111 return getName(); 112 } 113 114 private String namespace; 118 private ProcessContents processContents; 119 120 public static final String PROP_NAMESPACE = "namespace"; public static final String PROP_PROCESSCONTENTS = "processContents"; } 126 | Popular Tags |