Package moise.os
Class OS
- java.lang.Object
-
- moise.common.MoiseElement
-
- moise.os.OS
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,Identifiable
,ToXML
public class OS extends MoiseElement implements ToXML
Represents an Organization Specification (SS, FS, NS).- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FS
fs
protected NS
ns
private static long
serialVersionUID
protected SS
ss
protected java.lang.String
uri
-
Fields inherited from class moise.common.MoiseElement
debug
-
-
Constructor Summary
Constructors Constructor Description OS()
-
Method Summary
Modifier and Type Method Description void
addFS(FS f)
adds the scheme of another FS into this OSvoid
addNS(NS d)
adds the norms of another NS into this OSvoid
addSS(SS s)
adds the elements (roles definitions, link types, ...) of another SS into this OSorg.w3c.dom.Element
getAsDOM(org.w3c.dom.Document document)
java.lang.String
getAsProlog()
returns a string representing the goal in Prolog syntax, format: os(id, root group, [schemes], [norms])FS
getFS()
NS
getNS()
SS
getSS()
java.lang.String
getURI()
static java.lang.String
getXMLTag()
static OS
loadOSFromURI(java.lang.String uri)
static void
main(java.lang.String[] args)
used to convert old format to the newvoid
setFromDOM(org.w3c.dom.Node node)
the organisation-specification parent node is the parametervoid
setFS(FS f)
void
setNS(NS n)
void
setSS(SS s)
void
setURI(java.lang.String u)
-
Methods inherited from class moise.common.MoiseElement
compareTo, equals, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setProperty, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ss
protected SS ss
-
fs
protected FS fs
-
ns
protected NS ns
-
uri
protected java.lang.String uri
-
-
Method Detail
-
setSS
public void setSS(SS s)
-
setFS
public void setFS(FS f)
-
setNS
public void setNS(NS n)
-
setURI
public void setURI(java.lang.String u)
-
getURI
public java.lang.String getURI()
-
addSS
public void addSS(SS s) throws MoiseException
adds the elements (roles definitions, link types, ...) of another SS into this OS- Throws:
MoiseException
-
addFS
public void addFS(FS f)
adds the scheme of another FS into this OS
-
addNS
public void addNS(NS d)
adds the norms of another NS into this OS
-
getSS
public SS getSS()
-
getFS
public FS getFS()
-
getNS
public NS getNS()
-
getAsProlog
public java.lang.String getAsProlog()
returns a string representing the goal in Prolog syntax, format: os(id, root group, [schemes], [norms])
-
getXMLTag
public static java.lang.String getXMLTag()
-
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)
-
loadOSFromURI
public static OS loadOSFromURI(java.lang.String uri)
-
setFromDOM
public void setFromDOM(org.w3c.dom.Node node) throws MoiseException
the organisation-specification parent node is the parameter- Throws:
MoiseException
-
main
public static void main(java.lang.String[] args)
used to convert old format to the new
-
-