|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The base interface for the document properties. Derived from the original properties/DocumentProperties which is now an implementation of it.
| Method Summary | |
Element |
getElement()
Returns the dom4j Element representation of this document. |
String |
getLocation()
Returns the location of the document. |
String |
getName()
Returns the name of the document. |
URL |
getURL()
Returns the URL of the document. |
DocumentProperties |
newDocumentProperties(Element element)
Constructor for the document properties. |
DocumentProperties |
newDocumentProperties(URL location,
boolean validate)
Constructor for the document properties. |
DocumentProperties |
newDocumentProperties(URL location,
String name,
boolean validate)
Constructor for the document properties. |
void |
setName(String name)
Sets the name of the document. |
void |
setURL(URL url)
Sets the URL of the document. |
void |
setValidate(boolean enabled)
Sets wether this document should be validated. |
boolean |
validate()
Returns wether this document should be validated. |
| Method Detail |
public DocumentProperties newDocumentProperties(Element element)
element - the element that contains the name and
location of the document.
public DocumentProperties newDocumentProperties(URL location,
boolean validate)
location - the URL of the document.validate - validate when opening the document.
public DocumentProperties newDocumentProperties(URL location,
String name,
boolean validate)
location - the URL of the document.name - the name of the document.validate - validate when opening the document.public URL getURL()
public void setURL(URL url)
url - the document URL (The param should not be null!).public String getLocation()
public String getName()
public void setName(String name)
public boolean validate()
public void setValidate(boolean enabled)
enabled - true when the document should be validated.public Element getElement()
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||