1 // license-header java merge-point 2 // 3 // Attention: generated code (by Metafacade.vsl) - do not modify! 4 // 5 package org.andromda.cartridges.xmlschema.metafacades; 6 7 import org.andromda.metafacades.uml.AttributeFacade; 8 9 /** 10 * Can be either an XSD attribute or element. 11 * 12 * Metafacade interface to be used by AndroMDA cartridges. 13 */ 14 public interface XSDAttribute 15 extends AttributeFacade 16 { 17 /** 18 * Indicates the metafacade type (used for metafacade mappings). 19 * 20 * @return boolean always <code>true</code> 21 */ 22 public boolean isXSDAttributeMetaType(); 23 24 /** 25 * Gets the maximum amount this element can occur within an XML Schema complex type (if the 26 * object represents an attribute this value will be null). 27 * @return String 28 */ 29 public String getMaxOccurs(); 30 31 /** 32 * Returns the minimum amount that this object can occur with an XML Schema complex type (if the 33 * object represents an attribute this value will be null). 34 * @return String 35 */ 36 public String getMinOccurs(); 37 38 /** 39 * Indicates whether or not the owner of this attribute is an XML schema type. 40 * @return boolean 41 */ 42 public boolean isOwnerSchemaType(); 43 44 /** 45 * Returns true if this object represents an XSD attribute, false otherwise. 46 * @return boolean 47 */ 48 public boolean isXsdAttribute(); 49 50 /** 51 * Returns true if this object represents an XSD element, false otherwise. 52 * @return boolean 53 */ 54 public boolean isXsdElement(); 55 }