C# 클래스 SimpleFramework.Xml.Stream.OutputAttribute

The OutputAttribute object is used to represent a node added to the output node map. It represents a simple name value pair that is used as an attribute by an output element. This shares its namespaces with the parent element so that any namespaces added to the attribute are actually added to the parent element, which ensures correct scoping.
상속: OutputNode
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

메소드 설명
Commit ( ) : void

The commit method is used flush and commit any child nodes that have been created by this node. This allows the output to be completed when building of the XML document has been completed. If output fails an exception is thrown.

GetChild ( String name ) : OutputNode
GetPrefix ( ) : String
GetPrefix ( bool inherit ) : String
IsCommitted ( ) : bool

This is used to determine whether the node has been committed. If the node has been committed, then this will return true. When committed the node can no longer produce child nodes.

IsRoot ( ) : bool

This method is used to determine if this node is the root node for the XML document. The root node is the first node in the document and has no sibling nodes. This is false if the node has a parent node or a sibling node.

OutputAttribute ( OutputNode source, String name, String value ) : System

Constructor for the OutputAttribute object. This is used to create a simple name value pair attribute holder.

Remove ( ) : void

This is used to remove any uncommitted changes. Removal of an output node can only be done if it has no siblings and has not yet been committed. If the node is committed then this will throw an exception to indicate that it cannot be removed.

SetAttribute ( String name, String value ) : OutputNode
ToString ( ) : String

This is used to acquire the name and value of the attribute. Implementing this method ensures that debugging the output node is simplified as it is possible to get the actual value.

메소드 상세

Commit() 공개 메소드

The commit method is used flush and commit any child nodes that have been created by this node. This allows the output to be completed when building of the XML document has been completed. If output fails an exception is thrown.
public Commit ( ) : void
리턴 void

GetChild() 공개 메소드

public GetChild ( String name ) : OutputNode
name String /// this is the name of the child element to create ///
리턴 OutputNode

GetPrefix() 공개 메소드

public GetPrefix ( ) : String
리턴 String

GetPrefix() 공개 메소드

public GetPrefix ( bool inherit ) : String
inherit bool /// if there is no explicit prefix then inherit ///
리턴 String

IsCommitted() 공개 메소드

This is used to determine whether the node has been committed. If the node has been committed, then this will return true. When committed the node can no longer produce child nodes.
public IsCommitted ( ) : bool
리턴 bool

IsRoot() 공개 메소드

This method is used to determine if this node is the root node for the XML document. The root node is the first node in the document and has no sibling nodes. This is false if the node has a parent node or a sibling node.
public IsRoot ( ) : bool
리턴 bool

OutputAttribute() 공개 메소드

Constructor for the OutputAttribute object. This is used to create a simple name value pair attribute holder.
public OutputAttribute ( OutputNode source, String name, String value ) : System
source OutputNode
name String /// this is the name that is used for the node ///
value String /// this is the value used for the node ///
리턴 System

Remove() 공개 메소드

This is used to remove any uncommitted changes. Removal of an output node can only be done if it has no siblings and has not yet been committed. If the node is committed then this will throw an exception to indicate that it cannot be removed.
public Remove ( ) : void
리턴 void

SetAttribute() 공개 메소드

public SetAttribute ( String name, String value ) : OutputNode
name String /// this is the name of the attribute to be added ///
value String /// this is the value of the node to be added ///
리턴 OutputNode

ToString() 공개 메소드

This is used to acquire the name and value of the attribute. Implementing this method ensures that debugging the output node is simplified as it is possible to get the actual value.
public ToString ( ) : String
리턴 String