|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IitsElementManager
Service interface for managing the mapping between LibreoFfice text documents and ITS Tag elements
Method Summary | |
---|---|
void |
clearErrors()
Clears all possible errors |
java.util.List<IitsTagElement> |
findAll()
Returns all managed IitsTagElement |
java.util.List<IitsTagElement> |
findByAttribute(IitsAttribute attribute)
returns all its tag elements, that match a certain ITS attribute |
java.util.List<IitsTagElement> |
findByAttributeName(java.lang.String attributeName)
Returns all Its Tag Elements, that match a certain attribute name |
IitsTagElement |
findById(IitsId id)
Returns an IitsTagElement with a given id |
IitsTagElement |
findById(java.lang.String id)
Returns an IitsTagElement with a given id |
java.util.List<ItsError> |
getErrors()
Returns a list of errors |
java.lang.String |
getIdReferenceAttributeName()
Returns the internally used tag attribute name in ODT File to resolve ITS Tags |
ItsDocument |
getItsDocument()
Returns the underlying Its Document |
IitsTagElement |
getItsElement(java.lang.String id)
returns an ITS tag element with its id |
boolean |
hasErrors()
Returns true, if there were error during its tag processing |
IitsTagElement |
insert(IitsId id,
ItsAttributes dcname,
java.lang.String dcvalue)
Inserts an ITS Local Attribute into a document hierarchy using a parent element for nested data categories |
IitsTagElement |
insert(ItsAttributes attrib,
java.lang.String... params)
Inserts an ITS Local Attribute into a document hiearchy |
IitsTagElement |
insert(java.util.Map<ItsAttributes,java.util.List<java.lang.String>> values)
Inserts a new IitsTagElement using the provided values |
IitsTagElement |
insert(java.lang.String dcname,
java.lang.String dcvalue)
Inserts an ITS Local Attribute into a document hierarchy |
IitsTagElement |
insert(java.lang.String id,
java.lang.String dcname,
java.lang.String dcvalue)
Inserts an ITS Local Attribute into a document hierarchy using a parent element for nested data categories |
IitsTagElement |
remove(java.lang.String id)
Removes an IitsTagElement . |
void |
reset()
UNSAFE OP! |
void |
setIdReferenceAttributeName(java.lang.String name)
Sets the default tag attribute name for ODT files to resolve ITS tags |
void |
setItsDocument(ItsDocument document)
Sets the currently available ItsDocument |
void |
updateId(java.lang.String id)
Updates the Id |
Method Detail |
---|
void reset()
IitsTagElement insert(ItsAttributes attrib, java.lang.String... params)
attrib
- the ItsAttributes
prefigured constantparams
- ITS Attribute valuesIitsTagElement insert(java.util.Map<ItsAttributes,java.util.List<java.lang.String>> values)
IitsTagElement
using the provided values
values
- a mapping between ItsAttributes
and a list of values
IitsTagElement
IitsTagElement insert(java.lang.String dcname, java.lang.String dcvalue)
dcname
- the name of the data category to insert.dcvalue
- the value of the data category
IitsTagElement
IitsTagElement insert(java.lang.String id, java.lang.String dcname, java.lang.String dcvalue)
id
- the parent element iddcname
- the data category nanedcvalue
- the data category value
IitsTagElement insert(IitsId id, ItsAttributes dcname, java.lang.String dcvalue)
id
- the IitsIddcname
- the data category namedcvalue
- the data category value
insert(String, String, String)
IitsTagElement remove(java.lang.String id)
IitsTagElement
. The element, if exsisting,
will also be removed from the document tree, resulting all child elements moving
one depth level higher to the next parent element
IitsTagElement getItsElement(java.lang.String id)
id
-
java.util.List<IitsTagElement> findAll()
Returns all managed IitsTagElement
java.util.List<IitsTagElement> findByAttribute(IitsAttribute attribute)
java.util.List<IitsTagElement> findByAttributeName(java.lang.String attributeName)
attributeName
-
IitsTagElement findById(java.lang.String id)
id
- the Identifier as String
IitsTagElement
IitsTagElement findById(IitsId id)
id
- the Identifier as IitsId
IitsTagElement
java.lang.String getIdReferenceAttributeName()
void setIdReferenceAttributeName(java.lang.String name)
name
- void updateId(java.lang.String id) throws java.lang.Exception
id
-
java.lang.Exception
void setItsDocument(ItsDocument document)
document
- an ItsDocument
ItsDocument getItsDocument()
java.util.List<ItsError> getErrors()
boolean hasErrors()
void clearErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |