deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.framework.xml.schema
Class ElementReference

java.lang.Object
  extended by org.deegree.framework.xml.schema.ElementReference

public class ElementReference
extends Object

Represents an element reference. The reference may be resolved or not. If it is resolved, the referenced ElementDeclaration is accessible, otherwise only the name of the element is available.

Since:
2.0
Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Constructor Summary
ElementReference(QualifiedName elementName)
          Creates an unresolved ElementReference.
 
Method Summary
 ElementDeclaration getElementDeclaration()
           
 QualifiedName getName()
           
 boolean isResolved()
           
 void resolve()
          set this element as resolved.
 void resolve(ElementDeclaration declaration)
          Flag this elementreference as resolved, with the given declaration set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementReference

public ElementReference(QualifiedName elementName)
Creates an unresolved ElementReference.

Parameters:
elementName -
Method Detail

getName

public QualifiedName getName()
Returns:
the full name of the element

isResolved

public boolean isResolved()
Returns:
true if the element is resolved

getElementDeclaration

public ElementDeclaration getElementDeclaration()
Returns:
the declaration of the Element

resolve

public void resolve(ElementDeclaration declaration)
Flag this elementreference as resolved, with the given declaration set.

Parameters:
declaration - to set the element to.
Throws:
RuntimeException - if the element is resolved already.

resolve

public void resolve()
set this element as resolved.

Throws:
RuntimeException - if the element is resolved already

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org