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

All Superinterfaces:
XSDComponent

public interface XSDElementReference
extends XSDComponent

Metadata for a single element reference 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
 XSDElementDeclaration getElementDeclaration()
          Get the referenced element declaration component.
 int getMaxOccursValue()
          Get the value of the 'maxOccurs' attribute.
 int getMinOccursValue()
          Get the value of the 'minOccurs' attribute.
 javax.xml.namespace.QName getReferenceValue()
          Get the value of the 'ref' attribute as a qualified name.
 
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

getMinOccursValue

int getMinOccursValue()
Get the value of the 'minOccurs' attribute. Legal values are all non-negative integers.

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

getMaxOccursValue

int getMaxOccursValue()
Get the value of the 'maxOccurs' attribute. Legal values are all non-negative integers, or the 'unbounded' constant value. If the 'unbounded' constant is used, this method will return Integer.MAX_INT.

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

getReferenceValue

javax.xml.namespace.QName getReferenceValue()
Get the value of the 'ref' attribute as a qualified name. This can be used when the reference can't be resolved to an actual global element declaration.

Returns:
the qualified element name

getElementDeclaration

XSDElementDeclaration getElementDeclaration()
Get the referenced element declaration component.

Returns:
the element declaration component, or null if unresolved


Copyright © 2012 Pegasystems Inc. All Rights Reserved.