Serializable
RELAXModule.AttPoolContainer
, RELAXModule.ElementRulesContainer
, RELAXModule.HedgeRulesContainer
, RELAXModule.TagContainer
, TREXGrammar.RefContainer
, XMLSchemaSchema.AttributeDeclContainer
, XMLSchemaSchema.AttributeGroupContainer
, XMLSchemaSchema.ComplexTypeContainer
, XMLSchemaSchema.ElementDeclContainer
, XMLSchemaSchema.GroupDeclContainer
, XMLSchemaSchema.SimpleTypeContainer
public abstract class ReferenceContainer extends Object implements Serializable
Constructor | Description |
---|---|
ReferenceContainer() |
Modifier and Type | Method | Description |
---|---|---|
ReferenceExp |
_get(String name) |
gets a referenced expression
Derived class should provide type-safe accesser methods.
|
ReferenceExp |
_getOrCreate(String name) |
gets or creates ReferenceExp object.
|
protected abstract ReferenceExp |
createReference(String name) |
creates a new reference object with given name
|
ReferenceExp[] |
getAll() |
obtains all items in this container.
|
Iterator |
iterator() |
iterates all ReferenceExp in this container
|
void |
redefine(String name,
ReferenceExp newExp) |
replaces the current ReferenceExp by newly specified reference exp.
|
ReferenceExp |
remove(String name) |
removes an object from this container.
|
int |
size() |
gets the number of ReferenceExps in this container.
|
protected final Map impl
public final ReferenceExp _getOrCreate(String name)
_get(String)
method is probably what you need.protected abstract ReferenceExp createReference(String name)
public void redefine(String name, ReferenceExp newExp)
public final ReferenceExp _get(String name)
public final Iterator iterator()
public final ReferenceExp[] getAll()
public final ReferenceExp remove(String name)
public final int size()
Copyright © 2019 Oracle Corporation. All rights reserved.