public boolean equals(Object obj) { if (obj == null || !(obj instanceof SimpleNameClass)) return false; SimpleNameClass other = (SimpleNameClass)obj; return name.equals(other.name); }
public boolean equals(Object obj) { if (obj == null || !(obj instanceof SimpleNameClass)) return false; SimpleNameClass other = (SimpleNameClass)obj; return name.equals(other.name); }
public boolean contains(Name name) { return this.name.equals(name); }
public boolean contains(Name name) { return this.name.equals(name); }
public boolean equals(Object obj) { if (!super.equals(obj)) return false; Element other = (Element)obj; return this.name.equals(other.name) && this.complexType.equals(other.complexType); }
private void addSubstitutionGroup(Name elementName, List<Name> members, Set<Name> newAbstractElements) { for (Name member : members) { Name old = getSubstitutionGroup(member); if (old != null && !old.equals(elementName)) { newAbstractElements.remove(old); return; } substitutionGroupMap.put(member, elementName); } newAbstractElements.add(elementName); abstractElementSubstitutionGroupMemberMap.put(elementName, members); }
public boolean equals(Object obj) { if (!super.equals(obj)) return false; Attribute other = (Attribute)obj; return Equal.equal(this.type, other.type) && this.name.equals(other.name); }
public void visitName(Name name) { visitNsName(name.getNamespaceUri()); if (name.equals(new Name("", "xmlns"))) errorMessageId = "xmlns_attribute"; }
public void visitName(Name name) { visitNsName(name.getNamespaceUri()); if (name.equals(new Name("", "xmlns"))) errorMessageId = "xmlns_attribute"; }
public SchemaReceiverImpl(PropertyMap properties) { Name attributeOwner = properties.get(WrapProperty.ATTRIBUTE_OWNER); attributesSchema = (attributeOwner != null); PropertyMapBuilder builder = new PropertyMapBuilder(properties); if (ValidatorImpl.OWNER_NAME.equals(attributeOwner)) { attributeSchemaProperties = properties; builder.put(WrapProperty.ATTRIBUTE_OWNER, null); this.properties = builder.toPropertyMap(); } else { if (attributeOwner == null) this.properties = properties; else { builder.put(WrapProperty.ATTRIBUTE_OWNER, null); this.properties = builder.toPropertyMap(); } builder.put(WrapProperty.ATTRIBUTE_OWNER, ValidatorImpl.OWNER_NAME); attributeSchemaProperties = builder.toPropertyMap(); } this.autoSchemaLanguage = new AutoSchemaReader(properties.get(SchemaReceiverFactory.PROPERTY)); }
public SchemaReceiverImpl(PropertyMap properties) { Name attributeOwner = properties.get(WrapProperty.ATTRIBUTE_OWNER); attributesSchema = (attributeOwner != null); PropertyMapBuilder builder = new PropertyMapBuilder(properties); if (ValidatorImpl.OWNER_NAME.equals(attributeOwner)) { attributeSchemaProperties = properties; builder.put(WrapProperty.ATTRIBUTE_OWNER, null); this.properties = builder.toPropertyMap(); } else { if (attributeOwner == null) this.properties = properties; else { builder.put(WrapProperty.ATTRIBUTE_OWNER, null); this.properties = builder.toPropertyMap(); } builder.put(WrapProperty.ATTRIBUTE_OWNER, ValidatorImpl.OWNER_NAME); attributeSchemaProperties = builder.toPropertyMap(); } this.autoSchemaLanguage = new AutoSchemaReader(properties.get(SchemaReceiverFactory.PROPERTY)); }