Package com.sun.xml.xsom.impl.parser
Class DelayedRef
- java.lang.Object
-
- com.sun.xml.xsom.impl.parser.DelayedRef
-
- All Implemented Interfaces:
Patch
- Direct Known Subclasses:
DelayedRef.AttGroup,DelayedRef.Attribute,DelayedRef.ComplexType,DelayedRef.Element,DelayedRef.IdentityConstraint,DelayedRef.ModelGroup,DelayedRef.SimpleType,DelayedRef.Type
public abstract class DelayedRef extends java.lang.Object implements Patch
Reference by name. UName will be later resolved to a target object, after all the schemas are parsed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDelayedRef.AttGroupstatic classDelayedRef.Attributestatic classDelayedRef.ComplexTypestatic classDelayedRef.Elementstatic classDelayedRef.IdentityConstraintstatic classDelayedRef.ModelGroupstatic classDelayedRef.SimpleTypestatic classDelayedRef.Type
-
Field Summary
Fields Modifier and Type Field Description private PatcherManagermanagerprivate UNamenameprivate java.lang.Objectrefprotected XSSchemaSetschemaprivate org.xml.sax.Locatorsourcelocation in the source file where this reference was made.
-
Constructor Summary
Constructors Constructor Description DelayedRef(PatcherManager _manager, org.xml.sax.Locator _source, SchemaImpl _schema, UName _name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object_get()protected abstract java.lang.StringgetErrorProperty()voidredefine(XSDeclaration d)If this reference refers to the given declaration, resolve the reference now.private voidresolve()protected abstract java.lang.ObjectresolveReference(UName name)voidrun()Patch implementation.
-
-
-
Field Detail
-
schema
protected final XSSchemaSet schema
-
manager
private PatcherManager manager
-
name
private UName name
-
source
private org.xml.sax.Locator source
location in the source file where this reference was made.
-
ref
private java.lang.Object ref
-
-
Constructor Detail
-
DelayedRef
DelayedRef(PatcherManager _manager, org.xml.sax.Locator _source, SchemaImpl _schema, UName _name)
-
-
Method Detail
-
run
public void run() throws org.xml.sax.SAXExceptionPatch implementation. Makes sure that the name resolves to a schema component.
-
resolveReference
protected abstract java.lang.Object resolveReference(UName name)
-
getErrorProperty
protected abstract java.lang.String getErrorProperty()
-
_get
protected final java.lang.Object _get()
-
resolve
private void resolve() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
redefine
public void redefine(XSDeclaration d)
If this reference refers to the given declaration, resolve the reference now. This is used to implement redefinition.
-
-