com.pega.pegarules.pub.services.xsd
Interface XSDAttributeDeclaration

All Superinterfaces:
XSDComponent

public interface XSDAttributeDeclaration
extends XSDComponent

Metadata for a single attribute declaration from an XML Schema

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
Peter Tandara-Kuhns

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Method Summary
 java.lang.String getDefaultValue()
          Get the value of the 'default' attribute.
 java.lang.String getFixedValue()
          Get the value of the 'fixed' attribute.
 java.lang.String getFormValue()
          Get the value of the 'form' attribute.
 java.lang.String getName()
          Get the name of this attribute.
 java.lang.String getNamespaceURI()
          Get the namespace URI that this attribute belongs to.
 XSDSimpleTypeDefinition getTypeDefinition()
          Get the type definition component associated with this element.
 javax.xml.namespace.QName getTypeReferenceValue()
          Get the value of the 'type' attribute as a qualified name.
 java.lang.String getUseValue()
          Get the value of the 'use' attribute.
 boolean isGlobal()
          Determine if the attribute declaration has global scope.
 
Methods inherited from interface com.pega.pegarules.pub.services.xsd.XSDComponent
getAllMetadata, getAnnotations, getIDValue
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

static final java.lang.String VERSION
Method Detail

getNamespaceURI

java.lang.String getNamespaceURI()
Get the namespace URI that this attribute belongs to.

Returns:
the namespace URI value

getName

java.lang.String getName()
Get the name of this attribute.

Returns:
the name value

getFormValue

java.lang.String getFormValue()
Get the value of the 'form' attribute. Legal values for this attribute are 'unqualified' or 'qualified'. If declared, this value overrides an declared or undeclared form default value defined at schema scope.

Returns:
the value, or null if the attribute is not present

getUseValue

java.lang.String getUseValue()
Get the value of the 'use' attribute. Legal values for this attribute are 'optional', 'required', or 'prohibited'.

Returns:
the value, or 'optional' if the attribute is not present

getDefaultValue

java.lang.String getDefaultValue()
Get the value of the 'default' attribute. It is not legal to use both the 'default' and the 'fixed' attribute on the same attribute declaration.

Returns:
the value, or null if the attribute is not present

getFixedValue

java.lang.String getFixedValue()
Get the value of the 'fixed' attribute. It is not legal to use both the 'default' and the 'fixed' attribute on the same attribute declaration.

Returns:
the value, or null if the attribute is not present

isGlobal

boolean isGlobal()
Determine if the attribute declaration has global scope.

Returns:
true if the attribute declaration is global, false otherwise

getTypeReferenceValue

javax.xml.namespace.QName getTypeReferenceValue()
Get the value of the 'type' attribute as a qualified name. If the type is not declared, the value will be the built-in xsd:anySimpleType ur-type. The built-in XSD types are described in the W3C XML Schema specification, Part 2.

Returns:
the qualified type name, or null if the attribute is not present

getTypeDefinition

XSDSimpleTypeDefinition getTypeDefinition()
Get the type definition component associated with this element.

Returns:
the type definition component, or null if unresolved


Copyright © 2012 Pegasystems Inc. All Rights Reserved.