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 class
DelayedRef.AttGroup
static class
DelayedRef.Attribute
static class
DelayedRef.ComplexType
static class
DelayedRef.Element
static class
DelayedRef.IdentityConstraint
static class
DelayedRef.ModelGroup
static class
DelayedRef.SimpleType
static class
DelayedRef.Type
-
Field Summary
Fields Modifier and Type Field Description private PatcherManager
manager
private UName
name
private java.lang.Object
ref
protected XSSchemaSet
schema
private org.xml.sax.Locator
source
location 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.String
getErrorProperty()
void
redefine(XSDeclaration d)
If this reference refers to the given declaration, resolve the reference now.private void
resolve()
protected abstract java.lang.Object
resolveReference(UName name)
void
run()
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.SAXException
Patch 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.
-
-