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

The NamespaceMap object is used store the namespaces for an element. Each namespace added to this map can be added with a prefix. A prefix is added only if the associated reference has not been added to a parent element. If a parent element has the associated reference, then the parents prefix is the one that will be returned when requested from this map.
상속: System.Collections.Generic.IEnumerable
파일 보기 프로젝트 열기: ngallagher/simplexml 1 사용 예제들

공개 메소드들

메소드 설명
Get ( String reference ) : String
Put ( String reference ) : String

This is used to add the namespace reference to the namespace map. If the namespace has been added to a parent node then this will not add the reference. The prefix added to the map will be the default namespace, which is an empty prefix.

Put ( String reference, String prefix ) : String

This is used to add the namespace reference to the namespace map. If the namespace has been added to a parent node then this will not add the reference.

Remove ( String reference ) : String

This is used to remove the prefix that is matched to the given reference. If no prefix is matched to the reference then this will silently return. This will only remove mappings from the current map, and will ignore the parent nodes.

메소드 상세

Get() 공개 추상적인 메소드

public abstract Get ( String reference ) : String
reference String /// the reference to find a matching prefix for ///
리턴 String

Put() 공개 추상적인 메소드

This is used to add the namespace reference to the namespace map. If the namespace has been added to a parent node then this will not add the reference. The prefix added to the map will be the default namespace, which is an empty prefix.
public abstract Put ( String reference ) : String
reference String /// this is the reference to be added ///
리턴 String

Put() 공개 추상적인 메소드

This is used to add the namespace reference to the namespace map. If the namespace has been added to a parent node then this will not add the reference.
public abstract Put ( String reference, String prefix ) : String
reference String /// this is the reference to be added ///
prefix String /// this is the prefix to be added to the reference ///
리턴 String

Remove() 공개 추상적인 메소드

This is used to remove the prefix that is matched to the given reference. If no prefix is matched to the reference then this will silently return. This will only remove mappings from the current map, and will ignore the parent nodes.
public abstract Remove ( String reference ) : String
reference String /// this is the reference that is to be removed ///
리턴 String