public abstract class HolderBase extends Object
| Constructor and Description |
|---|
HolderBase(String uri)
Constructor for a file being generated.
|
HolderBase(String uri,
String name)
Constructor for an existing file.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addNamespaceDecl(String prefix,
String uri)
Subclass hook method to handle adding a namespace declaration.
|
void |
addReference(HolderBase ref)
Record a reference from this file to another file of the same type.
|
void |
finish()
Implementation method for subclasses to complete the construction of the file.
|
String |
getFileName()
Get the file name to be used for this file.
|
String |
getNamespace()
Get namespace URI associated with this file.
|
String |
getPrefix(String uri)
Get the prefix for a namespace URI.
|
Set |
getReferences()
Get the set of references from this file to other files of the same type.
|
boolean |
isExistingFile()
Check if file already exists.
|
boolean |
isModifiable()
Check if file is modifiable.
|
void |
setFileName(String name)
Set the file name to be used for this file.
|
public HolderBase(String uri)
uri - (null if no-namespace binding)public boolean isExistingFile()
true if existing file, false if notpublic boolean isModifiable()
false for an existing file, and will be set
false for new files when finish() is called.true if file is modifiable, false if notpublic String getPrefix(String uri)
uri - URIprotected abstract void addNamespaceDecl(String prefix, String uri)
prefix - Prefixuri - URIpublic String getNamespace()
null if no-namespace)public String getFileName()
null if not set)public void setFileName(String name)
name - Fielnamepublic void addReference(HolderBase ref)
ref - to filepublic Set getReferences()
public void finish()
Copyright © 2005–2016 jibx.org. All rights reserved.